rcu: Print human-readable message for schedule() in RCU reader
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 19 Jul 2021 18:52:12 +0000 (11:52 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 6 Aug 2021 20:41:49 +0000 (13:41 -0700)
commit521c89b3a4022269c75b35062358d1dae4ebfa79
tree38ed225f1b20fe03e3f3641f03b7f0a599bb0e8d
parent508958259bb3d9ca4ec37f0abdb211e9a6f3daa2
rcu: Print human-readable message for schedule() in RCU reader

The WARN_ON_ONCE() invocation within the CONFIG_PREEMPT=y version of
rcu_note_context_switch() triggers when there is a voluntary context
switch in an RCU read-side critical section, but there is quite a gap
between the output of that WARN_ON_ONCE() and this RCU-usage error.
This commit therefore converts the WARN_ON_ONCE() to a WARN_ONCE()
that explicitly describes the problem in its message.

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