io_uring: return back links tw run optimisation
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 16 Jan 2023 16:48:57 +0000 (16:48 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commitb0b7a7d24b66109a940d09d8d2dcf513e4eaf3a1
treef8c14e44ea4cc08f7544d965492040ae9b0ba2a1
parent88b80534f60f5ddf5f42218b280e0370f95eae78
io_uring: return back links tw run optimisation

io_submit_flush_completions() may queue new requests for tw execution,
especially true for linked requests. Recheck the tw list for emptiness
after flushing completions.

Note that this doesn't really fix the commit referenced below, but it
does reinstate an optimization that existed before that got merged.

Fixes: f88262e60bb9 ("io_uring: lockless task list")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6328acdbb5e60efc762b18003382de077e6e1367.1673887636.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c