]> git.baikalelectronics.ru Git - kernel.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>
Fri, 10 Mar 2023 08:33:48 +0000 (09:33 +0100)
commita84f4412f25dcbf6316224753093ed029a00e1c0
tree2c0c63f1ac94c9af6209b0c1d2717c7d5d124314
parent42f7ac6dc9429132fa8cac427f97b62712c3648a
rcu: Suppress smp_processor_id() complaint in synchronize_rcu_expedited_wait()

[ Upstream commit 3686be81c7fe611d9bf187d1df7dc2bd008b0884 ]

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