]> www.infradead.org Git - users/jedix/linux-maple.git/commit
slab, rcu: move TINY_RCU variant of kvfree_rcu() to SLAB
authorVlastimil Babka <vbabka@suse.cz>
Mon, 3 Feb 2025 09:28:47 +0000 (10:28 +0100)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 3 Mar 2025 18:43:51 +0000 (13:43 -0500)
commitbd4f94b228d46e4cfe0b74a5ba7a45442c349207
tree4fb0c384e1ca2210bcb9ca9de4741af7b45eeae2
parent5f089a9aa987ccf72df0c6955e168e865f280603
slab, rcu: move TINY_RCU variant of kvfree_rcu() to SLAB

Following the move of TREE_RCU implementation, let's move also the
TINY_RCU one for consistency and subsequent refactoring.

For simplicity, remove the separate inline __kvfree_call_rcu() as
TINY_RCU is not meant for high-performance hardware anyway.

Declare kvfree_call_rcu() in rcupdate.h to avoid header dependency
issues.

Also move the kvfree_rcu_barrier() declaration to slab.h

Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/rcupdate.h
include/linux/rcutiny.h
include/linux/rcutree.h
include/linux/slab.h
kernel/rcu/tiny.c
mm/slab_common.c