rcuscale: Add kfree_rcu() single-argument scale test
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Wed, 17 Feb 2021 18:51:10 +0000 (19:51 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 8 Mar 2021 22:18:07 +0000 (14:18 -0800)
commit686fe1bf6bcce3ce9fc03c9d9035c643c320ca46
tree970bc832017aed84551f032312bed1c8cbc8a3a9
parentee6ddf58475cce8a3d3697614679cd8cb4a6f583
rcuscale: Add kfree_rcu() single-argument scale test

The single-argument variant of kfree_rcu() is currently not
tested by any member of the rcutoture test suite.  This
commit therefore adds rcuscale code to test it.  This
testing is controlled by two new boolean module parameters,
kfree_rcu_test_single and kfree_rcu_test_double.  If one
is set and the other not, only the corresponding variant
is tested, otherwise both are tested, with the variant to
be tested determined randomly on each invocation.

Both of these module parameters are initialized to false,
so setting either to true will test only that variant.

Suggested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/rcuscale.c