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, 25 Jan 2021 16:07:20 +0000 (09:07 -0700)
commit511975a8b18e660ea0e7b5b4947e5c40999943ed
tree88d4299558fe4f733c5ae5969b7732dd916ed399
parent31b12e2732384d6f252d06d00a302a267cf132d3
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