* [PATCH] io_uring: don't reuse linked_timeout
@ 2020-10-20 22:50 Pavel Begunkov
0 siblings, 0 replies; only message in thread
From: Pavel Begunkov @ 2020-10-20 22:50 UTC (permalink / raw)
To: Jens Axboe, io-uring; +Cc: stable
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.
Cc: [email protected] # v5.9
Signed-off-by: Pavel Begunkov <[email protected]>
---
fs/io_uring.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fs/io_uring.c b/fs/io_uring.c
index c4e54728175e..8e48e47906ba 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -6235,8 +6235,10 @@ static void __io_queue_sqe(struct io_kiocb *req, struct io_comp_state *cs)
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:
--
2.24.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-20 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-20 22:50 [PATCH] io_uring: don't reuse linked_timeout Pavel Begunkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox