]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefdfaa1443fc9bba8844c9cf1888c435ab9d5ea9
treee791994e55e3758926952cdb144f346b83a422c1
parent7d81c0b04207349c1bdc1eac3699da82b63e624b
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