]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: helper for empty req cache checks
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 12 Apr 2022 14:09:47 +0000 (15:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:02:46 +0000 (18:02 -0600)
commit5ed44341800717722648dee6e170c17467ec9a46
treef2cba1fbcc2fa4915ab3e19a5b085f19c3030a68
parent0ade3caf91f980b9b0100c5f853725996133bccd
io_uring: helper for empty req cache checks

Add io_req_cache_empty(), which checks if there are requests in the
inline req cache or not. It'll be needed in the future, but also nicely
cleans up a few spots poking into ->free_list directly.

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