summaryrefslogtreecommitdiff
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-06-29 12:59:48 +0300
committerJens Axboe <axboe@kernel.dk>2020-06-29 07:43:03 -0600
commitfb49278624f75e15d36c3c43d322ca8961fb40e9 (patch)
treea67cd9295bcec94b0392c48e6402d72e2e2c0640 /fs/io_uring.c
parentf3a6fa2267480d7f19fbde8316372be46055e548 (diff)
downloadlwn-fb49278624f75e15d36c3c43d322ca8961fb40e9.tar.gz
lwn-fb49278624f75e15d36c3c43d322ca8961fb40e9.zip
io_uring: fix missing wake_up io_rw_reissue()
Don't forget to wake up a process to which io_rw_reissue() added task_work. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 9d3d8d3866cc..92c7e2a96912 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2168,8 +2168,10 @@ static bool io_rw_reissue(struct io_kiocb *req, long res)
tsk = req->task;
init_task_work(&req->task_work, io_rw_resubmit);
ret = task_work_add(tsk, &req->task_work, true);
- if (!ret)
+ if (!ret) {
+ wake_up_process(tsk);
return true;
+ }
#endif
return false;
}