commit | 711be0312df4d350fb5bf1671c132cccae5aaf9a | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Fri Jan 17 03:57:59 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Jan 20 17:04:06 2020 -0700 |
tree | 88b1d8d532147eed4336a86e4916090b3a5ac6f3 | |
parent | 66f4af93da5761d2fa05c0dc673a47003cdb9cfe [diff] |
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>