]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
testing/radix-tree/maple: Hack around kfree_rcu not existing
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 3 Sep 2025 12:59:57 +0000 (14:59 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 29 Sep 2025 07:23:52 +0000 (09:23 +0200)
commit551a6e757a95c23cd808533ef96e083d2a858ba0
tree8056165427ffc272324928b90d3027c66351fa69
parent9f910f7d3d84927c388ede3c8053760a5947973b
testing/radix-tree/maple: Hack around kfree_rcu not existing

liburcu doesn't have kfree_rcu (or anything similar). Despite that, we
can hack around it in a trivial fashion, by adding a wrapper.

The wrapper only works for maple_nodes because we cannot get the
kmem_cache pointer any other way in the test code.

Link: https://lore.kernel.org/all/20250812162124.59417-1-pfalcato@suse.de/
Suggested-by: Pedro Falcato <pfalcato@suse.de>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
tools/testing/shared/maple-shared.h
tools/testing/shared/maple-shim.c