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: b41e98524e ("io_uring: add per-task callback handler")
Reported-by: syzbot+0c3370f235b74b3cfd97@syzkaller.appspotmail.com
Signed-off-by: Hillf Danton <hdanton@sina.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Hillf Danton 2020-04-01 17:19:33 +08:00 committed by Jens Axboe
parent 0558955373
commit 10bea96dcc
1 changed files with 1 additions and 0 deletions

View File

@ -5968,6 +5968,7 @@ static int io_sq_thread(void *data)
} }
if (current->task_works) { if (current->task_works) {
task_work_run(); task_work_run();
finish_wait(&ctx->sqo_wait, &wait);
continue; continue;
} }
if (signal_pending(current)) if (signal_pending(current))