io_uring: missed req_init_async() for IOSQE_ASYNC
PATCH 1/1 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]>
--- fs/io_uring.c | 1 + 1 file changed, 1 insertion(+)
fs/io_uring.c +1 -0
@@ -5730,6 +5730,7 @@ static void io_queue_sqe(struct io_kiocb *req, const struct io_uring_sqe *sqe)* 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 {
Signature · 1 line
2.24.0
Quoted 3 lines · Pavel Begunkov
IOSQE_ASYNCbranch ofio_queue_sqe()is another place where an unitialisedreq->workcan be accessed (i.e. priorio_req_init_async()). Nothing really bad though, it just loosesIO_WQ_WORK_CONCURRENTflag.
Applied, thanks.
Signature · 1 line
Jens Axboe