]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: optimise io_uring_enter()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:30 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commit1ee2ecf9bc1ce7a739f1fd6eab7ff7adb9c9c836
treeaea8567125c2dc92d86b77eeee73a5307149c8d4
parenteb4ba22a8f67f7563429c2240ca2c5198aa30c41
io_uring: optimise io_uring_enter()

Add unlikely annotations, because my compiler pretty much mispredicts
every first check, and apart jumping around in the fast path, it also
generates extra instructions, like in advance setting ret value.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c