io_uring: prolong tctx_task_work() with flushing
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 1 Sep 2021 23:38:23 +0000 (00:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Sep 2021 12:16:15 +0000 (06:16 -0600)
commit8d4ad41e3e8e4b907f088f25aee4a92f3f864027
treef6ea340ceae16ae71d53b281b9966f08b8561518
parent636378535afb837f165beb7de3907896480cf3b2
io_uring: prolong tctx_task_work() with flushing

io_submit_flush_completions() may enqueue linked requests for task_work
execution, so don't leave tctx_task_work() right after the tw list is
exhausted, but try to flush and then retry.

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