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>
Sun, 17 Apr 2022 22:55:33 +0000 (16:55 -0600)
commita463053e51c642040d85c465dec1b94951cff037
tree01ebac73555959b1416e71fa82eb593ed7b16b54
parent40d8dfba8df01ece25da3751202524b2948a7850
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