Commit 81e59494a56cb14f559886c345c4a93fb576bbab
1 parent
6231069bda
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
rcu: Tone down debugging during boot-up and shutdown.
In some situations, randomly delaying RCU grace-period initialization can cause more trouble than help. This commit therefore restricts this type of RCU self-torture to runtime, giving it a rest during boot and shutdown. Reported-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
kernel/rcutree.c
... | ... | @@ -1319,7 +1319,8 @@ |
1319 | 1319 | rnp->grphi, rnp->qsmask); |
1320 | 1320 | raw_spin_unlock_irq(&rnp->lock); |
1321 | 1321 | #ifdef CONFIG_PROVE_RCU_DELAY |
1322 | - if ((random32() % (rcu_num_nodes * 8)) == 0) | |
1322 | + if ((random32() % (rcu_num_nodes * 8)) == 0 && | |
1323 | + system_state == SYSTEM_RUNNING) | |
1323 | 1324 | schedule_timeout_uninterruptible(2); |
1324 | 1325 | #endif /* #ifdef CONFIG_PROVE_RCU_DELAY */ |
1325 | 1326 | cond_resched(); |