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>
Sun, 17 Apr 2022 22:55:33 +0000 (16:55 -0600)
commit40d8dfba8df01ece25da3751202524b2948a7850
tree02ac808a8e422b802006fb688f1fc48ae9ea82cf
parent92117a09b776392f3792c806c9ebc36e508921d4
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