summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-07-23 19:17:20 +0200
committerJens Axboe <axboe@kernel.dk>2020-07-23 19:20:55 +0200
commit3e863ea3bb1a2203ae648eb272db0ce6a1a2072c (patch)
treea02911f37307a6a7de768401018fc98297670b12 /fs/io_uring.c
parentio_uring: always allow drain/link/hardlink/async sqe flags (diff)
downloadlinux-3e863ea3bb1a2203ae648eb272db0ce6a1a2072c.tar.xz
linux-3e863ea3bb1a2203ae648eb272db0ce6a1a2072c.zip
io_uring: missed req_init_async() for IOSQE_ASYNC
IOSQE_ASYNC branch of io_queue_sqe() is another place where an unitialised req->work can be accessed (i.e. prior io_req_init_async()). Nothing really bad though, it just looses IO_WQ_WORK_CONCURRENT flag. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--fs/io_uring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index d99802ac166f..32b0064f806e 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -5730,6 +5730,7 @@ fail_req:
* Never try inline submit of IOSQE_ASYNC is set, go straight
* to async execution.
*/
+ io_req_init_async(req);
req->work.flags |= IO_WQ_WORK_CONCURRENT;
io_queue_async_work(req);
} else {