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>
Fri, 17 Jun 2022 14:25:37 +0000 (08:25 -0600)
commit3dd1026142f02f7ba3eeeea975689ddc78c542b9
tree4937c67413be2b9f9c8abb87513164e14ac1b086
parent4c13062b37d900d1afbc227e0d2c71f04376641a
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