]> Gentwo Git Trees - linux/.git/commit
rcu: Remove local_irq_save/restore() in rcu_preempt_deferred_qs_handler()
authorZqiang <qiang.zhang@linux.dev>
Wed, 13 Aug 2025 13:30:02 +0000 (21:30 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 14 Aug 2025 22:25:15 +0000 (15:25 -0700)
commit42d590d100f2e47e47d974a902b9ed610e464824
treeab1187348ee636d0674af35dcae4d35b4d5fef92
parentfaab3ae329a6efb96995aeb72a68a99f664fed38
rcu: Remove local_irq_save/restore() in rcu_preempt_deferred_qs_handler()

The per-CPU rcu_data structure's ->defer_qs_iw field is initialized
by IRQ_WORK_INIT_HARD(), which means that the subsequent invocation of
rcu_preempt_deferred_qs_handler() will always be executed with interrupts
disabled.  This commit therefore removes the local_irq_save/restore()
operations from rcu_preempt_deferred_qs_handler() and adds a call to
lockdep_assert_irqs_disabled() in order to enable lockdep to diagnose
mistaken invocations of this function from interrupts-enabled code.

Signed-off-by: Zqiang <qiang.zhang@linux.dev>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_plugin.h