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>
Wed, 22 Jun 2022 17:30:59 +0000 (11:30 -0600)
commit9dcb6b610a18f669f5895c737f32966c779f8c20
treebaaa9d296cae52425ab6f006008331f4e22f9b27
parent9bbc74fd432c5a11fbc145d56b602901efa7e7db
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