]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
rcu: Provide diagnostic option to slow down grace-period initialization
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 23 Jan 2015 02:24:08 +0000 (18:24 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 11 Mar 2015 20:22:38 +0000 (13:22 -0700)
commit37745d281069682d901f00c0121949a7d224195f
tree0c15fd487faa046a257336b4205572b066873ca7
parent237a0f2193c6daf9b1edd7fd15d55e680f268952
rcu: Provide diagnostic option to slow down grace-period initialization

Grace-period initialization normally proceeds quite quickly, so
that it is very difficult to reproduce races against grace-period
initialization.  This commit therefore allows grace-period
initialization to be artificially slowed down, increasing
race-reproduction probability.  A pair of new Kconfig parameters are
provided, CONFIG_RCU_TORTURE_TEST_SLOW_INIT to enable the slowdowns, and
CONFIG_RCU_TORTURE_TEST_SLOW_INIT_DELAY to specify the number of jiffies
of slowdown to apply.  A boot-time parameter named rcutree.gp_init_delay
allows boot-time delay to be specified.  By default, no delay will be
applied even if CONFIG_RCU_TORTURE_TEST_SLOW_INIT is set.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/kernel-parameters.txt
kernel/rcu/tree.c
lib/Kconfig.debug