io_uring: parse check_cq out of wq waiting
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Jan 2023 11:22:24 +0000 (11:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:39 +0000 (15:17 -0700)
commit3fcf19d592d5cb63eb209400b22055651e3c27d0
tree7709c204357d7a58896f73272698835ef7a1c170
parent140102ae9a9f2f83f0592b98b3c5c6119d9a9b32
io_uring: parse check_cq out of wq waiting

We already avoid flushing overflows in io_cqring_wait_schedule() but
only return an error for the outer loop to handle it. Minimise it even
further by moving all ->check_cq parsing there.

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