]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: optimise out unlikely link queue
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 12 Feb 2021 03:23:51 +0000 (03:23 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Feb 2021 12:30:25 +0000 (05:30 -0700)
commit9d1eedde177a2a01ddd6234c382358a2b7185225
tree109334fb85d7cadb8addd9ecfac0ef499f7ea9d1
parentd5eb51cb1521bc20c7fc2c6b7de30654ce014847
io_uring: optimise out unlikely link queue

__io_queue_sqe() tries to issue as much requests of a link as it can,
and uses io_put_req_find_next() to extract a next one, targeting inline
completed requests. As now __io_queue_sqe() is always used together with
struct io_comp_state, it leaves next propagation only a small window and
only for async reqs, that doesn't justify its existence.

Remove it, make __io_queue_sqe() to issue only a head request. It
simplifies the code and will allow other optimisations.

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