]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8890d64e3b9f2eb7cfba8b4c91e84914f981f937
tree5d49fa5013988c79c67bc18096300c62dfc314a5
parent3cd72efc2e7ce81d192d4b17831fd9fc38ef1921
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