diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-10-22 17:43:09 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-23 21:07:11 +0200 |
commit | ac877d2edd094e161801d72b49cfb56c5fc860fb (patch) | |
tree | b09d0161fde3834fb92146d0b62a5e1769e8ad6b /fs | |
parent | io_uring: remove opcode check on ltimeout kill (diff) | |
download | linux-ac877d2edd094e161801d72b49cfb56c5fc860fb.tar.xz linux-ac877d2edd094e161801d72b49cfb56c5fc860fb.zip |
io_uring: don't adjust LINK_HEAD in cancel ltimeout
An armed linked timeout can never be a head of a link, so we don't need
to clear REQ_F_LINK_HEAD for it.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index db7ad9e61146..043652929aa9 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1856,7 +1856,6 @@ static bool io_link_cancel_timeout(struct io_kiocb *req) if (ret != -1) { io_cqring_fill_event(req, -ECANCELED); io_commit_cqring(ctx); - req->flags &= ~REQ_F_LINK_HEAD; io_put_req_deferred(req, 1); return true; } |