From: Pavel Begunkov Date: Tue, 20 Oct 2020 22:50:27 +0000 (+0100) Subject: io_uring: don't reuse linked_timeout X-Git-Tag: microblaze-v5.11~20^2~4 X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=commitdiff_plain;h=ff5771613cd7b3a76cd16cb54aa81d30d3c11d48 io_uring: don't reuse linked_timeout Clear linked_timeout for next requests in __io_queue_sqe() so we won't queue it up unnecessary when it's going to be punted. Signed-off-by: Pavel Begunkov Cc: stable@vger.kernel.org # v5.9 Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index aeef02b0cf12..8fffcf4eefb1 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6237,8 +6237,10 @@ punt: if (nxt) { req = nxt; - if (req->flags & REQ_F_FORCE_ASYNC) + if (req->flags & REQ_F_FORCE_ASYNC) { + linked_timeout = NULL; goto punt; + } goto again; } exit: