io_uring: don't iterate cq wait fast path
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Jan 2023 11:22:21 +0000 (11:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 8 Jan 2023 18:18:44 +0000 (11:18 -0700)
commit12e31d17b06859d94939e9d81ecf789a3f44acd7
tree30a1356ab6410d0d2ae5e76b5b2a1be29274306c
parentbc3c0dd146e1f895cba45b3868e9cc44f54ee5d8
io_uring: don't iterate cq wait fast path

Task work runners keep running until all queues tw items are exhausted.
It's also rare for defer tw to queue normal tw and vise versa. Taking it
into account, there is only a dim chance that further iterating the
io_cqring_wait() fast path will get us anything and so we can remove
the loop there.

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