提交 fb492786 编写于 作者: P Pavel Begunkov 提交者: Jens Axboe

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: NPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 f3a6fa22
...@@ -2168,8 +2168,10 @@ static bool io_rw_reissue(struct io_kiocb *req, long res) ...@@ -2168,8 +2168,10 @@ static bool io_rw_reissue(struct io_kiocb *req, long res)
tsk = req->task; tsk = req->task;
init_task_work(&req->task_work, io_rw_resubmit); init_task_work(&req->task_work, io_rw_resubmit);
ret = task_work_add(tsk, &req->task_work, true); ret = task_work_add(tsk, &req->task_work, true);
if (!ret) if (!ret) {
wake_up_process(tsk);
return true; return true;
}
#endif #endif
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册