rcu: Add lockdep_assert_irqs_disabled() to rcu_sched_clock_irq() and callees
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 19 Nov 2020 18:13:06 +0000 (10:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:28 +0000 (09:50 +0200)
commitea5e5bc881a4de9b5e09a16af950af2584dd67d2
tree0993820e98692d87cfd316ee6dccab5d00302114
parent527b56d7856fc9a6dd5a0a96bca8ce394b97bfa8
rcu: Add lockdep_assert_irqs_disabled() to rcu_sched_clock_irq() and callees

[ Upstream commit a649d25dcc671a33b9cc3176411920fdc5fbd98e ]

This commit adds a number of lockdep_assert_irqs_disabled() calls
to rcu_sched_clock_irq() and a number of the functions that it calls.
The point of this is to help track down a situation where lockdep appears
to be insisting that interrupts are enabled within these functions, which
should only ever be invoked from the scheduling-clock interrupt handler.

Link: https://lore.kernel.org/lkml/20201111133813.GA81547@elver.google.com/
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h
kernel/rcu/tree_stall.h