]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rcu: Suppress smp_processor_id() complaint in synchronize_rcu_expedited_wait()
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 16 Dec 2022 23:55:48 +0000 (15:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:26:41 +0000 (16:26 +0100)
commitdc5e333dcf17ac3d3a96ad67d5db6f54581fd103
tree5e143cb824007c70454233beebe576d2b8aa655d
parent89243a7b0ea19606ba1c2873c9d569026ccb344f
rcu: Suppress smp_processor_id() complaint in synchronize_rcu_expedited_wait()

[ Upstream commit 2d7f00b2f01301d6e41fd4a28030dab0442265be ]

The normal grace period's RCU CPU stall warnings are invoked from the
scheduling-clock interrupt handler, and can thus invoke smp_processor_id()
with impunity, which allows them to directly invoke dump_cpu_task().
In contrast, the expedited grace period's RCU CPU stall warnings are
invoked from process context, which causes the dump_cpu_task() function's
calls to smp_processor_id() to complain bitterly in debug kernels.

This commit therefore causes synchronize_rcu_expedited_wait() to disable
preemption around its call to dump_cpu_task().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/rcu/tree_exp.h