]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1caccf4bdcf94ea9571d7f111caf7dde2cb844a5
tree7f23733bfb21f869211df0cc626ffcc1154f95c0
parent5ed44341800717722648dee6e170c17467ec9a46
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