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)
commit33f993da9829738da3e088fb5d3128880a4137ba
treeaea8567125c2dc92d86b77eeee73a5307149c8d4
parent493f3b158a1e445e24d567847045baf5a723d206
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