io_uring: add helper to free all request caches
authorJens Axboe <axboe@kernel.dk>
Sat, 13 Feb 2021 16:09:44 +0000 (09:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 13 Feb 2021 16:09:44 +0000 (09:09 -0700)
commit9a4fdbd8ee0d8aca0cb5692446e5ca583b230cd7
treeb6fbe7f4f4173da7889132aeee6675c066c6a754
parent68e68ee6e359318c40891f614612616d219066d0
io_uring: add helper to free all request caches

We have three different ones, put it in a helper for easy calling. This
is in preparation for doing it outside of ring freeing as well. With
that in mind, also ensure that we do the proper locking for safe calling
from a context where the ring it still live.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c