diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-06-27 14:04:57 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-28 08:10:17 -0600 |
commit | a6d45dd0d43e6d1275e002704540688b6768bc22 (patch) | |
tree | ce7b2c42b99966d08e1ea5f7e4f68b5470361c82 /fs/io_uring.c | |
parent | 1bcb8c5d65a845e0ecb9e82237c399b29b8d15ea (diff) | |
download | lwn-a6d45dd0d43e6d1275e002704540688b6768bc22.tar.gz lwn-a6d45dd0d43e6d1275e002704540688b6768bc22.zip |
io_uring: don't mark link's head for_async
No reason to mark a head of a link as for-async in io_req_defer_prep().
grab_env(), etc. That will be done further during submission if
neccessary.
Mark for_async=false saving extra grab_env() in many cases.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 658949bed77f..545b137c7b4a 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6092,7 +6092,7 @@ static int io_submit_sqe(struct io_kiocb *req, const struct io_uring_sqe *sqe, if (io_alloc_async_ctx(req)) return -EAGAIN; - ret = io_req_defer_prep(req, sqe, true); + ret = io_req_defer_prep(req, sqe, false); if (ret) req->flags |= REQ_F_FAIL_LINK; *link = req; |