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>
Mon, 25 Jul 2022 00:39:13 +0000 (18:39 -0600)
commit3a08576b96e365d424225dd034c651e963b3ae64
treec6c36b9fb532662217e7cb852f5d4de3cd80ff29
parentaeaa72c69473d7e68addbd31f43c7c12af252bfc
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