aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-07-11 19:24:45 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-07-17 17:59:06 -0400
commitcdacbe1f91264687af956e810278030f2ab5a3d0 (patch)
tree3a4e912e5c319329bc2a1e68b99ee041f0777150 /kernel/rcu/tree.h
parent32bb1c79996069ef9e4e53b428050749f9841c3f (diff)
rcu: Add fastpath bypassing funnel locking
In the common case, there will be only one expedited grace period in the system at a given time, in which case it is not helpful to use funnel locking. This commit therefore adds a fastpath that bypasses funnel locking when the root ->exp_funnel_mutex is not held. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.h')
-rw-r--r--kernel/rcu/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 543ba726396c..80d974df0ea0 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -493,7 +493,7 @@ struct rcu_state {
493 /* End of fields guarded by barrier_mutex. */ 493 /* End of fields guarded by barrier_mutex. */
494 494
495 unsigned long expedited_sequence; /* Take a ticket. */ 495 unsigned long expedited_sequence; /* Take a ticket. */
496 atomic_long_t expedited_tryfail; /* # acquisition failures. */ 496 atomic_long_t expedited_workdone0; /* # done by others #0. */
497 atomic_long_t expedited_workdone1; /* # done by others #1. */ 497 atomic_long_t expedited_workdone1; /* # done by others #1. */
498 atomic_long_t expedited_workdone2; /* # done by others #2. */ 498 atomic_long_t expedited_workdone2; /* # done by others #2. */
499 atomic_long_t expedited_workdone3; /* # done by others #3. */ 499 atomic_long_t expedited_workdone3; /* # done by others #3. */