io_uring: consolidate putting reqs task
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 25 Jan 2021 11:42:21 +0000 (11:42 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Feb 2021 17:02:43 +0000 (10:02 -0700)
commit7c6607313f032b73638a6f752cb4adf50ba947cf
tree975f312989c780df7ff48443a392a5df06c11d5d
parentecfc8492820732be652146280912554ced62c32b
io_uring: consolidate putting reqs task

We grab a task for each request and while putting it it also have to do
extra work like inflight accounting and waking up that task. This
sequence is duplicated several time, it's good time to add a helper.
More to that, the helper generates better code due to better locality
and so not failing alias analysis.

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