]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: optimise use of ctx->drain_next
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 17 Jan 2020 00:57:59 +0000 (03:57 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jan 2020 00:04:06 +0000 (17:04 -0700)
commitfd14460cefe4d8b6069e7e10a62d24d51c300633
tree88b1d8d532147eed4336a86e4916090b3a5ac6f3
parentd55ccf50011f55eb517080d164c0c4616f271c79
io_uring: optimise use of ctx->drain_next

Move setting ctx->drain_next to the only place it could be set, when it
got linked non-head requests. The same for checking it, it's interesting
only for a head of a link or a non-linked request.

No functional changes here. This removes some code from the common path
and also removes REQ_F_DRAIN_LINK flag, as it doesn't need it anymore.

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