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, 8 Jan 2023 18:18:44 +0000 (11:18 -0700)
commit22522155d2df661f937284af5d463482515bc690
tree83a3089c303d22948c8a6198cf6ab212554b9e40
parent77a85f11b050591904923bd398e433aa240260f3
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