lockdep: Complain only once about RCU in extended quiescent state
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 28 May 2020 15:49:29 +0000 (08:49 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 18:58:51 +0000 (11:58 -0700)
commitd29e0b26b020422cc51b5b51733cc50fcf443965
tree72b4b4b14248e0d0b7f12046b62ba2097c57ce4a
parent04b25a495bd68c1dad07263fb91e8b5a31c00a9e
lockdep: Complain only once about RCU in extended quiescent state

Currently, lockdep_rcu_suspicious() complains twice about RCU read-side
critical sections being invoked from within extended quiescent states,
for example:

RCU used illegally from idle CPU!
rcu_scheduler_active = 2, debug_locks = 1
RCU used illegally from extended quiescent state!

This commit therefore saves a couple lines of code and one line of
console-log output by eliminating the first of these two complaints.

Link: https://lore.kernel.org/lkml/87wo4wnpzb.fsf@nanos.tec.linutronix.de
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/locking/lockdep.c