]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/rsrc: use kvfree() for the imu cache
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2026 19:15:41 +0000 (13:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Apr 2026 18:19:01 +0000 (12:19 -0600)
commit02b8d41c17630493f63c7785c873e327fa9b76a6
tree1f9a51bd4dbc3a9f4650a49024739604cef942f1
parent53262c91f7b81f96495ff24e9d1fa8b1632e69c8
io_uring/rsrc: use kvfree() for the imu cache

Currently anything that requires kvmalloc_flex() for allocations will
not get re-cached, and hence the cache freeing path is correct in that
it always uses kfree() to free the allocated memory. But this seems a
bit fragile as it's something that could get mix should that situation
change, so switch io_free_imu() and io_alloc_cache_free() to use kvfree
as the desctructor.

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