io_uring: prep req when do IOSQE_ASYNC
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 22 Jan 2020 20:09:35 +0000 (23:09 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Jan 2020 20:57:46 +0000 (13:57 -0700)
commit1118591ab883f46df4ab614cc976bc4c8e04a464
tree50adb45f27ed9fd54e54925a662d09f467f10ce0
parent0463b6c58e557118d602b2f225fa3bbe9b6f3560
io_uring: prep req when do IOSQE_ASYNC

Whenever IOSQE_ASYNC is set, requests will be punted to async without
getting into io_issue_req() and without proper preparation done (e.g.
io_req_defer_prep()). Hence they will be left uninitialised.

Prepare them before punting.

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