]> 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>
Tue, 4 Mar 2025 16:35:04 +0000 (11:35 -0500)
commit0d725d9cbe8d4dea6a4a1159863df71bc7a161da
tree723f503e997cc01f4400bd759b692d1a401bff29
parent7b6c5895bb9ac3aadddd51108b7bb3bb1c7f3110
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>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Tested-by: Paul E. McKenney <paulmck@kernel.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