diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-10-22 16:43:09 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-23 13:07:11 -0600 |
commit | ac877d2edd094e161801d72b49cfb56c5fc860fb (patch) | |
tree | b09d0161fde3834fb92146d0b62a5e1769e8ad6b /fs/io_uring.c | |
parent | e08102d507f34e6591de521a4c2587c6f02c7996 (diff) | |
download | linux-ac877d2edd094e161801d72b49cfb56c5fc860fb.tar.gz linux-ac877d2edd094e161801d72b49cfb56c5fc860fb.tar.bz2 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/io_uring.c')
-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; } |