]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58924c7b3df77b08de9113ef6e9f0397a7619823
tree50adb45f27ed9fd54e54925a662d09f467f10ce0
parent5d51f9a7a21c3743c2255c00394973c984dc51ed
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