commit | 9835d6fafba58e6d9386a6d5af800789bdb52e5b | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Nov 21 21:24:56 2019 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Nov 25 19:56:10 2019 -0700 |
tree | 1ff0d914ab1d5b612ff899e987eb16d7ffd3cfca | |
parent | d732447fed7d6b4c22907f630cd25d574bae5276 [diff] |
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>