io-wq: return next work from ->do_work() directly
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 25 Jun 2020 15:20:54 +0000 (18:20 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 26 Jun 2020 16:34:27 +0000 (10:34 -0600)
commitf4db7182e0de981a3f1b356e0cf43c6815423055
tree430392eeccf52b8be23b84d722080e9782aa3109
parente883a79d8ced8e123f8c4042a29a7524c39935ab
io-wq: return next work from ->do_work() directly

It's easier to return next work from ->do_work() than
having an in-out argument. Looks nicer and easier to compile.
Also, merge io_wq_assign_next() into its only user.

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