io_uring: don't do full *prep_worker() from io-wq
commitdeb6dc0544884067b93bbf9a4716be323103b911
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Feb 2020 08:30:17 +0000 (24 11:30 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 21:04:28 +0000 (2 14:04 -0700)
treec5a133962f9f77dfc0efb4eebaf1018967d7377d
parent5ea62161167eb8297249d3f4dc63741016f01413
io_uring: don't do full *prep_worker() from io-wq

io_prep_async_worker() called io_wq_assign_next() do many useless checks:
io_req_work_grab_env() was already called during prep, and @do_hashed
is not ever used. Add io_prep_next_work() -- simplified version, that
can be called io-wq.

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