rcuscale: Add laziness and kfree tests
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Sun, 16 Oct 2022 16:22:57 +0000 (16:22 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 29 Nov 2022 22:02:52 +0000 (14:02 -0800)
commit084e04fff1601787a121c225502716b8c0314433
tree91aca2a3663582ec3512c315e924b9371ef8415a
parentc945b4da7a448a9a56becc5a8745d942b2b83d3c
rcuscale: Add laziness and kfree tests

This commit adds 2 tests to rcuscale.  The first one is a startup test
to check whether we are not too lazy or too hard working.  The second
one causes kfree_rcu() itself to use call_rcu() and checks memory
pressure. Testing indicates that the new call_rcu() keeps memory pressure
under control roughly as well as does kfree_rcu().

[ paulmck: Apply checkpatch feedback. ]

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcuscale.c