diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-26 17:59:02 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-07-25 13:04:48 -0700 |
commit | 537b85c870babacc1cf13235e92bee9de86210e0 (patch) | |
tree | 233487a7b6a4065e6ef2c8a06b11caba245ab306 /kernel/rcu/tree.h | |
parent | 9fa46fb8c9c6dfad30487fb3d905c2ff04b379b7 (diff) | |
download | linux-stable-537b85c870babacc1cf13235e92bee9de86210e0.tar.gz linux-stable-537b85c870babacc1cf13235e92bee9de86210e0.tar.bz2 linux-stable-537b85c870babacc1cf13235e92bee9de86210e0.zip |
rcu: Eliminate rcu_state ->orphan_lock
The ->orphan_lock is acquired and released only within the
rcu_migrate_callbacks() function, which now acquires the root rcu_node
structure's ->lock. This commit therefore eliminates the ->orphan_lock
in favor of the root rcu_node structure's ->lock.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.h')
-rw-r--r-- | kernel/rcu/tree.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 574513cf49b4..62b1d0b0d47c 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h @@ -348,14 +348,11 @@ struct rcu_state { /* End of fields guarded by root rcu_node's lock. */ - raw_spinlock_t orphan_lock ____cacheline_internodealigned_in_smp; - /* Protect following fields. */ struct rcu_cblist orphan_pend; /* Orphaned callbacks that */ /* need a grace period. */ struct rcu_cblist orphan_done; /* Orphaned callbacks that */ /* are ready to invoke. */ /* (Contains counts.) */ - /* End of fields guarded by orphan_lock. */ struct mutex barrier_mutex; /* Guards barrier fields. */ atomic_t barrier_cpu_count; /* # CPUs waiting on. */ |