rcutorture: Check for unwatched readers
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 11 Jun 2020 23:43:14 +0000 (16:43 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:01:44 +0000 (12:01 -0700)
commit775227511843202e65a7f194cbf64f38de01f004
tree0bc5ef7c51e55bddfb5811ec59f302e9757a97d8
parentbc77a72cd188d44881ee1b9d0a9d65ca8108b508
rcutorture: Check for unwatched readers

RCU is supposed to be watching all non-idle kernel code and also all
softirq handlers.  This commit adds some teeth to this statement by
adding a WARN_ON_ONCE().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c