mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:20:53 +07:00
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>
This commit is contained in:
parent
61710e437f
commit
3e863ea3bb
@ -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
|
* Never try inline submit of IOSQE_ASYNC is set, go straight
|
||||||
* to async execution.
|
* to async execution.
|
||||||
*/
|
*/
|
||||||
|
io_req_init_async(req);
|
||||||
req->work.flags |= IO_WQ_WORK_CONCURRENT;
|
req->work.flags |= IO_WQ_WORK_CONCURRENT;
|
||||||
io_queue_async_work(req);
|
io_queue_async_work(req);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user