io_uring: remove check_cq checking from hot paths
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Jun 2022 16:33:55 +0000 (17:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:04 +0000 (08:44 -0600)
commitdbc3d4d3b143ae2f186bff3d8273277254998529
treed18511f310024bdb3541592d54bd4647a6ae8971
parent0b96e6d1a621ab746038108b7edd26ee7fb49605
io_uring: remove check_cq checking from hot paths

All ctx->check_cq events are slow path, don't test every single flag one
by one in the hot path, but add a common guarding if.

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