Patch "io_uring: don't reuse linked_timeout" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    io_uring: don't reuse linked_timeout

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     io_uring-don-t-reuse-linked_timeout.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From ff5771613cd7b3a76cd16cb54aa81d30d3c11d48 Mon Sep 17 00:00:00 2001
From: Pavel Begunkov <asml.silence@xxxxxxxxx>
Date: Tue, 20 Oct 2020 23:50:27 +0100
Subject: io_uring: don't reuse linked_timeout

From: Pavel Begunkov <asml.silence@xxxxxxxxx>

commit ff5771613cd7b3a76cd16cb54aa81d30d3c11d48 upstream.

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 <asml.silence@xxxxxxxxx>
Cc: stable@xxxxxxxxxxxxxxx # v5.9
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 fs/io_uring.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -6249,8 +6249,10 @@ err:
 	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:


Patches currently in stable-queue which might be from asml.silence@xxxxxxxxx are

queue-5.9/io_uring-stash-ctx-task-reference-for-sqpoll.patch
queue-5.9/io_uring-return-cancelation-status-from-poll-timeout-files-handlers.patch
queue-5.9/io-wq-fix-use-after-free-in-io_wq_worker_running.patch
queue-5.9/io_uring-don-t-rely-on-weak-files-references.patch
queue-5.9/io_uring-allow-timeout-poll-files-killing-to-take-task-into-account.patch
queue-5.9/io_uring-move-dropping-of-files-into-separate-helper.patch
queue-5.9/io_uring-unconditionally-grab-req-task.patch
queue-5.9/io_uring-enable-task-files-specific-overflow-flushing.patch
queue-5.9/io_uring-don-t-reuse-linked_timeout.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux