rcu/nocb: Add a warning for non-GP kthread running GP code
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 5 Aug 2020 17:35:16 +0000 (10:35 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:37:54 +0000 (18:37 -0700)
commit4569c5ee95d5695bfd794ae968c2d59b3e69129a
tree0fd4a226e4570a6d60085b0d665faec3b8c82474
parentc0f97f20e5d97a1358ade650fcf6a322c0c9bc72
rcu/nocb: Add a warning for non-GP kthread running GP code

This commit increases RCU's ability to defend itself by emitting a warning
if one of the nocb CB kthreads invokes the GP kthread's wait function.
This warning augments a similar check that is carried out at the end
of rcutorture testing and when RCU CPU stall warnings are emitted.
The problem with those checks is that the miscreants have long since
departed and disposed of any and all evidence.

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