mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
rcu: Add debug checks to TREE_PREEMPT_RCU for premature grace periods
Check to make sure that there are no blocked tasks for the previous grace period while initializing for the next grace period, verify that rcu_preempt_qs() is given the correct CPU number and is never called for an offline CPU. Signed-off-by: Paul E. McKenney <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] LKML-Reference: <12528585111986-git-send-email-> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
bbe3eae8bb
commit
b0e165c035
2 changed files with 27 additions and 0 deletions
|
|
@ -632,6 +632,7 @@ rcu_start_gp(struct rcu_state *rsp, unsigned long flags)
|
|||
/* Special-case the common single-level case. */
|
||||
if (NUM_RCU_NODES == 1) {
|
||||
rnp->qsmask = rnp->qsmaskinit;
|
||||
rcu_preempt_check_blocked_tasks(rnp);
|
||||
rnp->gpnum = rsp->gpnum;
|
||||
rsp->signaled = RCU_SIGNAL_INIT; /* force_quiescent_state OK. */
|
||||
spin_unlock_irqrestore(&rnp->lock, flags);
|
||||
|
|
@ -665,6 +666,7 @@ rcu_start_gp(struct rcu_state *rsp, unsigned long flags)
|
|||
for (rnp_cur = &rsp->node[0]; rnp_cur < rnp_end; rnp_cur++) {
|
||||
spin_lock(&rnp_cur->lock); /* irqs already disabled. */
|
||||
rnp_cur->qsmask = rnp_cur->qsmaskinit;
|
||||
rcu_preempt_check_blocked_tasks(rnp);
|
||||
rnp->gpnum = rsp->gpnum;
|
||||
spin_unlock(&rnp_cur->lock); /* irqs already disabled. */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue