]> www.infradead.org Git - users/jedix/linux-maple.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)
commit88ab95be7e408ff9cedc81ad5402ad4bd700baf9
treef2cba1fbcc2fa4915ab3e19a5b085f19c3030a68
parent23a5c43b2fc0cc210dcb36264fe3050468c79b17
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