aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcutree_plugin.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
index 75113cb7c4fb..6abef3cfcbc1 100644
--- a/kernel/rcutree_plugin.h
+++ b/kernel/rcutree_plugin.h
@@ -695,9 +695,12 @@ static void rcu_report_exp_rnp(struct rcu_state *rsp, struct rcu_node *rnp)
695 695
696 raw_spin_lock_irqsave(&rnp->lock, flags); 696 raw_spin_lock_irqsave(&rnp->lock, flags);
697 for (;;) { 697 for (;;) {
698 if (!sync_rcu_preempt_exp_done(rnp)) 698 if (!sync_rcu_preempt_exp_done(rnp)) {
699 raw_spin_unlock_irqrestore(&rnp->lock, flags);
699 break; 700 break;
701 }
700 if (rnp->parent == NULL) { 702 if (rnp->parent == NULL) {
703 raw_spin_unlock_irqrestore(&rnp->lock, flags);
701 wake_up(&sync_rcu_preempt_exp_wq); 704 wake_up(&sync_rcu_preempt_exp_wq);
702 break; 705 break;
703 } 706 }
@@ -707,7 +710,6 @@ static void rcu_report_exp_rnp(struct rcu_state *rsp, struct rcu_node *rnp)
707 raw_spin_lock(&rnp->lock); /* irqs already disabled */ 710 raw_spin_lock(&rnp->lock); /* irqs already disabled */
708 rnp->expmask &= ~mask; 711 rnp->expmask &= ~mask;
709 } 712 }
710 raw_spin_unlock_irqrestore(&rnp->lock, flags);
711} 713}
712 714
713/* 715/*