OSDN Git Service

io_uring: missed req_init_async() for IOSQE_ASYNC
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 23 Jul 2020 17:17:20 +0000 (20:17 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jul 2020 17:20:55 +0000 (11:20 -0600)
commit3e863ea3bb1a2203ae648eb272db0ce6a1a2072c
treea02911f37307a6a7de768401018fc98297670b12
parent61710e437f2807e26a3402543bdbb7217a9c8620
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>
fs/io_uring.c