]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: optimise hot path restricted checks
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 26 Jun 2021 20:40:47 +0000 (21:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 20:15:40 +0000 (14:15 -0600)
commitc01cd56840d1724daccc614ff4e9cadc4e0fc212
tree4ccc1d88717996ae8c74f02c706e9afe6451b809
parentd758f46668653666cb9faf9206692ad185264daa
io_uring: optimise hot path restricted checks

Move likely/unlikely from io_check_restriction() to specifically
ctx->restricted check, because doesn't do what it supposed to and make
the common path take an extra jump.

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