io_uring: optimise success case of __io_queue_sqe
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:34 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:27:21 +0000 (15:27 -0600)
commita78136afae8c312e81227080fb31ac212ce795ec
tree9532334fdae8592d02447b6212593a1922bd9a08
parent39f22fa9045aa2cd0eeef0b96a2883068b176751
io_uring: optimise success case of __io_queue_sqe

Move the case of successfully issued request by doing that check first.
It's not much of a difference, just generates slightly better code for
me.

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