rcutorture: Enable SRCU readers from timer handler
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Jun 2017 19:52:44 +0000 (12:52 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 24 Jul 2017 23:04:11 +0000 (16:04 -0700)
commit5e741fa9e9698f4010bb85eff252186f7a4071f4
treec7b07c1434d2edd09705c037d93db8658921bf02
parent85ef2bd2a561055f3b1cab634f67b734034eb984
rcutorture: Enable SRCU readers from timer handler

Now that it is legal to invoke srcu_read_lock() and srcu_read_unlock()
for a given srcu_struct from both process context and {soft,}irq
handlers, it is time to test it.  This commit therefore enables
testing of SRCU readers from rcutorture's timer handler, using in_task()
to determine whether or not it is safe to sleep in the SRCU read-side
critical sections.

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