]> 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)
commitd24c98020d64cddea4ee55c11ff4898dd0b6d3f3
tree109334fb85d7cadb8addd9ecfac0ef499f7ea9d1
parentaa5d106c1c62f90ce525ad61a4ca98a35be39e10
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