]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Put panic_on_rcu_stall() after expedited RCU CPU stall warnings
authorZqiang <qiang1.zhang@intel.com>
Fri, 22 Apr 2022 13:15:18 +0000 (21:15 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 22 Jul 2022 00:41:56 +0000 (17:41 -0700)
commitef578a51537fbee2989048bd5e19f0e010367ea8
tree1214669189eb43ca9c1aaf48dbd5d492fb322122
parent4a6f5e56d461e076d2a6a77e2aa44b18af82b607
rcu: Put panic_on_rcu_stall() after expedited RCU CPU stall warnings

When a normal RCU CPU stall warning is encountered with the
panic_on_rcu_stall sysfs variable is set, the system panics only after
the stall warning is printed.  But when an expedited RCU CPU stall
warning is encountered with the panic_on_rcu_stall sysfs variable is
set, the system panics first, thus never printing the stall warning.
This commit therefore brings the expedited stall warning into line with
the normal stall warning by printing first and panicking afterwards.

Signed-off-by: Zqiang <qiang1.zhang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_exp.h