]> 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)
commit3fd2ae49c712bff431c1cbe1b9e6658b24012689
tree4ccc1d88717996ae8c74f02c706e9afe6451b809
parentb7622a54f44fd5f08d3a6dae470be30a68f35958
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