io_uring: deduplicate caches deallocation
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 31 Jan 2025 17:27:02 +0000 (17:27 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Feb 2025 19:45:41 +0000 (12:45 -0700)
commit90dda4f794c0e15a28e432545f233e0aa669eabc
tree8bafe8893a31143424213cecbcc312a382a313fe
parentce5b0a349b9c8b132eef724249385ba48ff82fff
io_uring: deduplicate caches deallocation

Add a function that frees all ring caches since we already have two
spots repeating the same thing and it's easy to miss it and change only
one of them.

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