diff options
author | Hillf Danton <hdanton@sina.com> | 2020-04-01 17:19:33 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-01 07:02:55 -0600 |
commit | 10bea96dcc13ad841d53bdcc9d8e731e9e0ad58f (patch) | |
tree | 81d9ffb22f42f3576153878fb625d062ee33fb41 /fs/io_uring.c | |
parent | 0558955373023b08f638c9ede36741b0e4200f58 (diff) | |
download | linux-10bea96dcc13ad841d53bdcc9d8e731e9e0ad58f.tar.bz2 |
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: b41e98524e42 ("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>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 7b5087904640..10645077d6b4 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -5968,6 +5968,7 @@ static int io_sq_thread(void *data) } if (current->task_works) { task_work_run(); + finish_wait(&ctx->sqo_wait, &wait); continue; } if (signal_pending(current)) |