Commit 4cfb25b
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>1 parent e5dc480 commit 4cfb25b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6506 | 6506 | | |
6507 | 6507 | | |
6508 | 6508 | | |
6509 | | - | |
| 6509 | + | |
6510 | 6510 | | |
6511 | 6511 | | |
6512 | 6512 | | |
| |||
6549 | 6549 | | |
6550 | 6550 | | |
6551 | 6551 | | |
6552 | | - | |
| 6552 | + | |
6553 | 6553 | | |
6554 | 6554 | | |
6555 | 6555 | | |
| |||
0 commit comments