mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 19:53:59 +08:00
rcu: Make expedited RCU CPU stall warnings respond to controls
The expedited RCU CPU stall warnings currently responds to neither the panic_on_rcu_stall sysctl setting nor the rcupdate.rcu_cpu_stall_suppress kernel boot parameter. This commit therefore updates the expedited code to respond to these two controls. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
908d2c1fd1
commit
24a6cff286
@ -428,6 +428,9 @@ static void synchronize_sched_expedited_wait(struct rcu_state *rsp)
|
|||||||
if (ret > 0 || sync_rcu_preempt_exp_done(rnp_root))
|
if (ret > 0 || sync_rcu_preempt_exp_done(rnp_root))
|
||||||
return;
|
return;
|
||||||
WARN_ON(ret < 0); /* workqueues should not be signaled. */
|
WARN_ON(ret < 0); /* workqueues should not be signaled. */
|
||||||
|
if (rcu_cpu_stall_suppress)
|
||||||
|
continue;
|
||||||
|
panic_on_rcu_stall();
|
||||||
pr_err("INFO: %s detected expedited stalls on CPUs/tasks: {",
|
pr_err("INFO: %s detected expedited stalls on CPUs/tasks: {",
|
||||||
rsp->name);
|
rsp->name);
|
||||||
ndetected = 0;
|
ndetected = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user