Skip to content

Commit 3e863ea

Browse files
isilenceaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 61710e4 commit 3e863ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/io_uring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5730,6 +5730,7 @@ static void io_queue_sqe(struct io_kiocb *req, const struct io_uring_sqe *sqe)
57305730
* Never try inline submit of IOSQE_ASYNC is set, go straight
57315731
* to async execution.
57325732
*/
5733+
io_req_init_async(req);
57335734
req->work.flags |= IO_WQ_WORK_CONCURRENT;
57345735
io_queue_async_work(req);
57355736
} else {

0 commit comments

Comments
 (0)