io_uring: add helper to return req to cache list
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 12 Apr 2022 14:09:48 +0000 (15:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:02:46 +0000 (18:02 -0600)
commitfa05457a603e7c8e97cd4cfb62de64bc9547ecb5
tree7f23733bfb21f869211df0cc626ffcc1154f95c0
parent88ab95be7e408ff9cedc81ad5402ad4bd700baf9
io_uring: add helper to return req to cache list

Don't hand code wq_stack_add_head() to ->free_list, which serves for
recycling io_kiocb, add a helper doing it for us.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f206f575486a8dd3d52f074ab37ed146b2d215b7.1649771823.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c