]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Add PROVE_RCU_DELAY to provoke difficult races
authorPaul E. McKenney <paul.mckenney@linaro.org>
Mon, 2 Jul 2012 21:42:01 +0000 (14:42 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 4 Sep 2012 23:20:07 +0000 (16:20 -0700)
commitb563f5a13c65f26d710d54d04b3f9b521b8af469
treeb888ccdee0d0652b58e9f1a7cce04c08cce054cc
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
rcu: Add PROVE_RCU_DELAY to provoke difficult races

There have been some recent bugs that were triggered only when
preemptible RCU's __rcu_read_unlock() was preempted just after setting
->rcu_read_lock_nesting to INT_MIN, which is a low-probability event.
Therefore, reproducing those bugs (to say nothing of gaining confidence
in alleged fixes) was quite difficult.  This commit therefore creates
a new debug-only RCU kernel config option that forces a short delay
in __rcu_read_unlock() to increase the probability of those sorts of
bugs occurring.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcupdate.c
lib/Kconfig.debug