rcutorture: Add RCU-bh and RCU-sched support for extended readers
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 6 Jul 2018 22:16:12 +0000 (15:16 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 30 Aug 2018 23:03:27 +0000 (16:03 -0700)
commit2ceebc035082a42f1416d4b47270c0acb5354949
tree4ce9ce47a56e95d1fd96d440c4ba272d3185e0ab
parenta8bb74acd8efe2eb934d524ae20859980975b602
rcutorture: Add RCU-bh and RCU-sched support for extended readers

Since there is now a single consolidated RCU flavor, rcutorture
needs to test extending of RCU readers via rcu_read_lock_bh() and
rcu_read_lock_sched().  This commit adds this support, with added checks
(just like for local_bh_enable()) to ensure that rcu_read_unlock_bh()
will not be invoked while interrupts are disabled.

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