Skip to content

Commit ff57716

Browse files
isilenceaxboe
authored andcommitted
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 <asml.silence@gmail.com> Cc: stable@vger.kernel.org # v5.9 Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 6922833 commit ff57716

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fs/io_uring.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6237,8 +6237,10 @@ static void __io_queue_sqe(struct io_kiocb *req, struct io_comp_state *cs)
62376237
if (nxt) {
62386238
req = nxt;
62396239

6240-
if (req->flags & REQ_F_FORCE_ASYNC)
6240+
if (req->flags & REQ_F_FORCE_ASYNC) {
6241+
linked_timeout = NULL;
62416242
goto punt;
6243+
}
62426244
goto again;
62436245
}
62446246
exit:

0 commit comments

Comments
 (0)