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)
commit711be0312df4d350fb5bf1671c132cccae5aaf9a
tree88b1d8d532147eed4336a86e4916090b3a5ac6f3
parent66f4af93da5761d2fa05c0dc673a47003cdb9cfe
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