]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcuscale: Use special allocator for rcu_scale_writer()
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 2 Aug 2024 00:43:06 +0000 (17:43 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Wed, 14 Aug 2024 18:44:48 +0000 (00:14 +0530)
commit1c3e6e7903fa939601fdd326b04507304ba22337
tree45773e18a3dc2a1d523d4a5ec8ec5087ef7b74d8
parent3e3c4f0e2753e92aa2a248d34c6866c0a264ac96
rcuscale: Use special allocator for rcu_scale_writer()

The rcu_scale_writer() function needs only a fixed number of rcu_head
structures per kthread, which means that a trivial allocator suffices.
This commit therefore uses an llist-based allocator using a fixed array of
structures per kthread.  This allows aggressive testing of RCU performance
without stressing the slab allocators.

Signed-off-by: "Paul E. McKenney" <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/rcuscale.c