rcutorture: Add forward-progress tests for RCU grace periods
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 18 Jul 2018 21:32:31 +0000 (14:32 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 29 Aug 2018 16:20:48 +0000 (09:20 -0700)
commit1b27291b1ea4f1f2090fb07c3425db474cdb99ba
tree03f2f7c99cbb7888cb83af55adedb369762a61e6
parenta52d14addf06c00cfca4f1698e254955942be754
rcutorture: Add forward-progress tests for RCU grace periods

This commit adds a kthread that loops going into and out of RCU
read-side critical sections, but also including a cond_resched(),
optionally guarded by a check of need_resched(), in that same loop.
This commit relies solely on rcu_torture_writer() progress to judge
the forward progress of grace periods.

Note that Tasks RCU and SRCU are exempted from forward-progress testing
due their (intentionally) less-robust forward-progress guarantees.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcutiny.h
kernel/rcu/rcutorture.c
kernel/rcu/update.c