aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/rcu/tree.c12
-rw-r--r--kernel/rcu/tree.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 85c2c2dc4c4a..58aa6c2fd7fa 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -97,7 +97,7 @@ struct rcu_state rcu_state = {
97 .abbr = RCU_ABBR, 97 .abbr = RCU_ABBR,
98 .exp_mutex = __MUTEX_INITIALIZER(rcu_state.exp_mutex), 98 .exp_mutex = __MUTEX_INITIALIZER(rcu_state.exp_mutex),
99 .exp_wake_mutex = __MUTEX_INITIALIZER(rcu_state.exp_wake_mutex), 99 .exp_wake_mutex = __MUTEX_INITIALIZER(rcu_state.exp_wake_mutex),
100 .ofl_lock = __SPIN_LOCK_UNLOCKED(rcu_state.ofl_lock), 100 .ofl_lock = __RAW_SPIN_LOCK_UNLOCKED(rcu_state.ofl_lock),
101}; 101};
102 102
103/* Dump rcu_node combining tree at boot to verify correct setup. */ 103/* Dump rcu_node combining tree at boot to verify correct setup. */
@@ -1776,13 +1776,13 @@ static bool rcu_gp_init(void)
1776 */ 1776 */
1777 rcu_state.gp_state = RCU_GP_ONOFF; 1777 rcu_state.gp_state = RCU_GP_ONOFF;
1778 rcu_for_each_leaf_node(rnp) { 1778 rcu_for_each_leaf_node(rnp) {
1779 spin_lock(&rcu_state.ofl_lock); 1779 raw_spin_lock(&rcu_state.ofl_lock);
1780 raw_spin_lock_irq_rcu_node(rnp); 1780 raw_spin_lock_irq_rcu_node(rnp);
1781 if (rnp->qsmaskinit == rnp->qsmaskinitnext && 1781 if (rnp->qsmaskinit == rnp->qsmaskinitnext &&
1782 !rnp->wait_blkd_tasks) { 1782 !rnp->wait_blkd_tasks) {
1783 /* Nothing to do on this leaf rcu_node structure. */ 1783 /* Nothing to do on this leaf rcu_node structure. */
1784 raw_spin_unlock_irq_rcu_node(rnp); 1784 raw_spin_unlock_irq_rcu_node(rnp);
1785 spin_unlock(&rcu_state.ofl_lock); 1785 raw_spin_unlock(&rcu_state.ofl_lock);
1786 continue; 1786 continue;
1787 } 1787 }
1788 1788
@@ -1818,7 +1818,7 @@ static bool rcu_gp_init(void)
1818 } 1818 }
1819 1819
1820 raw_spin_unlock_irq_rcu_node(rnp); 1820 raw_spin_unlock_irq_rcu_node(rnp);
1821 spin_unlock(&rcu_state.ofl_lock); 1821 raw_spin_unlock(&rcu_state.ofl_lock);
1822 } 1822 }
1823 rcu_gp_slow(gp_preinit_delay); /* Races with CPU hotplug. */ 1823 rcu_gp_slow(gp_preinit_delay); /* Races with CPU hotplug. */
1824 1824
@@ -3377,7 +3377,7 @@ void rcu_report_dead(unsigned int cpu)
3377 3377
3378 /* Remove outgoing CPU from mask in the leaf rcu_node structure. */ 3378 /* Remove outgoing CPU from mask in the leaf rcu_node structure. */
3379 mask = rdp->grpmask; 3379 mask = rdp->grpmask;
3380 spin_lock(&rcu_state.ofl_lock); 3380 raw_spin_lock(&rcu_state.ofl_lock);
3381 raw_spin_lock_irqsave_rcu_node(rnp, flags); /* Enforce GP memory-order guarantee. */ 3381 raw_spin_lock_irqsave_rcu_node(rnp, flags); /* Enforce GP memory-order guarantee. */
3382 rdp->rcu_ofl_gp_seq = READ_ONCE(rcu_state.gp_seq); 3382 rdp->rcu_ofl_gp_seq = READ_ONCE(rcu_state.gp_seq);
3383 rdp->rcu_ofl_gp_flags = READ_ONCE(rcu_state.gp_flags); 3383 rdp->rcu_ofl_gp_flags = READ_ONCE(rcu_state.gp_flags);
@@ -3388,7 +3388,7 @@ void rcu_report_dead(unsigned int cpu)
3388 } 3388 }
3389 rnp->qsmaskinitnext &= ~mask; 3389 rnp->qsmaskinitnext &= ~mask;
3390 raw_spin_unlock_irqrestore_rcu_node(rnp, flags); 3390 raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
3391 spin_unlock(&rcu_state.ofl_lock); 3391 raw_spin_unlock(&rcu_state.ofl_lock);
3392 3392
3393 per_cpu(rcu_cpu_started, cpu) = 0; 3393 per_cpu(rcu_cpu_started, cpu) = 0;
3394} 3394}
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index bfbf97a1c29d..703e19ff532d 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -343,7 +343,7 @@ struct rcu_state {
343 const char *name; /* Name of structure. */ 343 const char *name; /* Name of structure. */
344 char abbr; /* Abbreviated name. */ 344 char abbr; /* Abbreviated name. */
345 345
346 spinlock_t ofl_lock ____cacheline_internodealigned_in_smp; 346 raw_spinlock_t ofl_lock ____cacheline_internodealigned_in_smp;
347 /* Synchronize offline with */ 347 /* Synchronize offline with */
348 /* GP pre-initialization. */ 348 /* GP pre-initialization. */
349}; 349};