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, 4 Apr 2021 21:27:21 +0000 (15:27 -0600)
commitd5a4c7217d8f3c70b931fbaebb5cf73065d703a2
treec4d5e8ad2ecabe076d98756538ff3949603f0c10
parentf4a603427b8853a8f0c9d332a4ab76500ca6f0a1
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