From: Pavel Begunkov Date: Thu, 22 Oct 2020 15:43:09 +0000 (+0100) Subject: io_uring: don't adjust LINK_HEAD in cancel ltimeout X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ac877d2edd094e161801d72b49cfb56c5fc860fb;p=linux.git 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 Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index db7ad9e611468..043652929aa9d 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; }