]> 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)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 5 Feb 2025 09:45:12 +0000 (10:45 +0100)
commitb14ff274e8aa5517ff86c94d682bf26bf8b5dcc8
treeebe7e7708fb4bc3ad7484eade19ee78b44f7f0ce
parent2014c95afecee3e76ca4a56956a936e23283f05b
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