Commit ff577161 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe
Browse files

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: default avatarPavel Begunkov <asml.silence@gmail.com>
Cc: stable@vger.kernel.org # v5.9
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 69228338
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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: