Skip to content

Commit 1bb03ad

Browse files
paulmckrcuurezki
authored andcommitted
rcu: Add lockdep_assert_irqs_disabled() to rcu_exp_need_qs()
Callers to rcu_exp_need_qs() are supposed to disable interrupts, so this commit enlists lockdep's aid in checking this. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent ecc5e6b commit 1bb03ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/rcu/tree_exp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ static void rcu_exp_sel_wait_wake(unsigned long s)
722722
/* Request an expedited quiescent state. */
723723
static void rcu_exp_need_qs(void)
724724
{
725+
lockdep_assert_irqs_disabled();
725726
ASSERT_EXCLUSIVE_WRITER_SCOPED(*this_cpu_ptr(&rcu_data.cpu_no_qs.b.exp));
726727
__this_cpu_write(rcu_data.cpu_no_qs.b.exp, true);
727728
/* Store .exp before .rcu_urgent_qs. */

0 commit comments

Comments
 (0)