]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
maple_tree: Use kfree_rcu in ma_free_rcu
authorPedro Falcato <pfalcato@suse.de>
Wed, 3 Sep 2025 12:59:58 +0000 (14:59 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 29 Sep 2025 07:24:03 +0000 (09:24 +0200)
commit9b60811cb3b42fe9a8e3f0aa3e007cd9cc814a78
treebc1eb2a949f65961a43f3f19fe705c7961582f38
parent551a6e757a95c23cd808533ef96e083d2a858ba0
maple_tree: Use kfree_rcu in ma_free_rcu

kfree_rcu is an optimized version of call_rcu + kfree. It used to not be
possible to call it on non-kmalloc objects, but this restriction was
lifted ever since SLOB was dropped from the kernel, and since commit
6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from kmem_cache_destroy()").

Thus, replace call_rcu + mt_free_rcu with kfree_rcu.

Signed-off-by: Pedro Falcato <pfalcato@suse.de>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
lib/maple_tree.c