]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add likely/unlikely in io_get_sqring()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 21 Nov 2019 18:24:56 +0000 (21:24 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:10 +0000 (19:56 -0700)
commit464c60379ac3bdb39b8a0ab3c6cb8266b7d1b675
tree1ff0d914ab1d5b612ff899e987eb16d7ffd3cfca
parent3be3f7955629fa004badc95563acc15072bedf8d
io_uring: add likely/unlikely in io_get_sqring()

The number of SQEs to submit is specified by a user, so io_get_sqring()
in most of the cases succeeds. Hint compilers about that.

Checking ASM genereted by gcc 9.2.0 for x64, there is one branch
misprediction.

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