]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: allow finding next link independent of req reference count
authorJens Axboe <axboe@kernel.dk>
Wed, 20 Nov 2019 20:03:52 +0000 (13:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:06 +0000 (19:56 -0700)
commit71fef9783070d7aa0161ee523afd6d2d1a8a8116
tree28a4959486c3c775a477a2c7e0cb26e158de5752
parent549354fea3e4897c3d13f56f09b4735d3306ade5
io_uring: allow finding next link independent of req reference count

We currently try and start the next link when we put the request, and
only if we were going to free it. This means that the optimization to
continue executing requests from the same context often fails, as we're
not putting the final reference.

Add REQ_F_LINK_NEXT to keep track of this, and allow io_uring to find the
next request more efficiently.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c