io_uring: return normal tw run linking optimisation
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Jan 2023 14:37:19 +0000 (14:37 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commit50470fc5723ae0adb2f429a8b27ff6bf1a41913e
tree42773f2952bf87ce42ab1d4e4dfdb3fbb52daa32
parentcb6bf7f285c270d7808807128b5bce414e3f254a
io_uring: return normal tw run linking optimisation

io_submit_flush_completions() may produce new task_work items, so it's a
good idea to recheck the task_work list after flushing completions. The
optimisation is not new and was accidentially removed by
f88262e60bb9 ("io_uring: lockless task list")

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a7ed5ede84de190832cc33ebbcdd6e91cd90f5b6.1674484266.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c