io_uring: rearrange io_read()/write()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 14 Oct 2021 15:10:19 +0000 (16:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:55 +0000 (05:49 -0600)
commit607b6fb8017a684f3f1567ccf776bdc0fe6d120e
treee791994e55e3758926952cdb144f346b83a422c1
parent5e49c973fc39ffce287ab0763cb6f1e607962689
io_uring: rearrange io_read()/write()

Combine force_nonblock branches (which is already optimised by
compiler), flip branches so the most hot/common path is the first, e.g.
as with non on-stack iov setup, and add extra likely/unlikely
attributions for errror paths.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2c2536c5896d70994de76e387ea09a0402173a3f.1634144845.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c