We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a298232 commit 447c19fCopy full SHA for 447c19f
fs/io_uring.c
@@ -6354,10 +6354,11 @@ static enum hrtimer_restart io_link_timeout_fn(struct hrtimer *timer)
6354
* We don't expect the list to be empty, that will only happen if we
6355
* race with the completion of the linked work.
6356
*/
6357
- if (prev && req_ref_inc_not_zero(prev))
+ if (prev) {
6358
io_remove_next_linked(prev);
6359
- else
6360
- prev = NULL;
+ if (!req_ref_inc_not_zero(prev))
+ prev = NULL;
6361
+ }
6362
spin_unlock_irqrestore(&ctx->completion_lock, flags);
6363
6364
if (prev) {
0 commit comments