summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-10-21 00:50:27 +0200
committerJens Axboe <axboe@kernel.dk>2020-10-22 00:37:56 +0200
commitff5771613cd7b3a76cd16cb54aa81d30d3c11d48 (patch)
tree96fcbc16ad16a94217a14cda06363e28068fe560 /fs/io_uring.c
parentio_uring: unify fsize with def->work_flags (diff)
downloadlinux-ff5771613cd7b3a76cd16cb54aa81d30d3c11d48.tar.xz
linux-ff5771613cd7b3a76cd16cb54aa81d30d3c11d48.zip
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>
Diffstat (limited to '')
-rw-r--r--fs/io_uring.c4
1 files changed, 3 insertions, 1 deletions
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: