Skip to content

Commit 10bea96

Browse files
Hillf Dantonaxboe
authored andcommitted
io_uring: add missing finish_wait() in io_sq_thread()
Add it to pair with prepare_to_wait() in an attempt to avoid anything weird in the field. Fixes: b41e985 ("io_uring: add per-task callback handler") Reported-by: [email protected] Signed-off-by: Hillf Danton <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 0558955 commit 10bea96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/io_uring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5968,6 +5968,7 @@ static int io_sq_thread(void *data)
59685968
}
59695969
if (current->task_works) {
59705970
task_work_run();
5971+
finish_wait(&ctx->sqo_wait, &wait);
59715972
continue;
59725973
}
59735974
if (signal_pending(current))

0 commit comments

Comments
 (0)