io_uring: inline io_req_work_grab_env()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Jul 2020 09:46:49 +0000 (12:46 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 19:00:40 +0000 (13:00 -0600)
commitdca9cf8b87f55c96f072c1fc6bc90e2b97a8e19f
tree5d49fa5013988c79c67bc18096300c62dfc314a5
parent0f7e466b393abab86be96ffcf00af383afddc0d1
io_uring: inline io_req_work_grab_env()

The only caller of io_req_work_grab_env() is io_prep_async_work(), and
they are both initialising req->work. Inline grab_env(), it's easier
to keep this way, moreover there already were bugs with misplacing
io_req_init_async().

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