]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9df24230e25379d8a024ce09a43e8c289e46d78
treeb6fbe7f4f4173da7889132aeee6675c066c6a754
parented14de61c9ff999184e026811c4add0e601c104f
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