rcutorture: Allow for rcupdate.rcu_normal
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 1 Jan 2016 02:11:47 +0000 (18:11 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 31 Mar 2016 20:37:37 +0000 (13:37 -0700)
commit9efafb8849f732a3497f46f178b350c9ff7cfe27
tree132a900dce66dd262c6dcfd51797f71bd652cec0
parentfd35be623a1534bde57029c429b206d6c22a1ef6
rcutorture: Allow for rcupdate.rcu_normal

Currently, rcu_torture_writer() checks only for rcu_gp_is_expedited()
when deciding whether or not to do dynamic control of RCU expediting.
This means that if rcupdate.rcu_normal is specified, rcu_torture_writer()
will attempt to dynamically control RCU expediting, but will nonetheless
only test normal RCU grace periods.  This commit therefore adds a check
for !rcu_gp_is_normal(), and prints a message and desists from testing
dynamic control of RCU expediting when doing so is futile.

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