io_uring: flip if handling after io_setup_async_rw
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 1 Aug 2020 10:50:02 +0000 (13:50 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Aug 2020 17:02:57 +0000 (11:02 -0600)
commitfa15bafb71fd7a4d6018dae87cfaf890fd4ab47f
treec5b160ef4ba5b95a531d4471c948f047d1c45a86
parent1752f0adea98ef859978c090e0726844348758f9
io_uring: flip if handling after io_setup_async_rw

As recently done with with send/recv, flip the if after
rw_verify_aread() in io_{read,write}() and tabulise left bits left.
This removes mispredicted by a compiler jump on the success/fast path.

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