io_uring: fix punting req w/o grabbed env
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 27 Jun 2020 11:04:55 +0000 (14:04 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 28 Jun 2020 14:10:16 +0000 (08:10 -0600)
commit906a8c3fdbc367325d4200e39212a2a7715b7b0e
tree1920f1c8e5e187e2542a18de0410069c86c2d031
parent8ef77766ba8694968ed4ba24311b4bacee14f235
io_uring: fix punting req w/o grabbed env

It's not enough to check for REQ_F_WORK_INITIALIZED and punt async
assuming that io_req_work_grab_env() was called, it may not have been.
E.g. io_close_prep() and personality path set the flag without further
async init.

As a quick fix, always pass next work through io_req_task_queue().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c