summaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2012-05-29 02:57:46 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-07-02 15:33:21 -0400
commit06668efa9180f4824fe846a8ff96338c18646bc7 (patch)
tree2bda53825cb3437af82bc1db4a4114ee8e29e954 /kernel/rcutree.h
parent037b64ed0bf2405a1a01542164d3418564b44fff (diff)
rcu: Move _rcu_barrier()'s rcu_head structures to rcu_data structures
In order for multiple flavors of RCU to each concurrently run one rcu_barrier(), each flavor needs its own per-CPU set of rcu_head structures. This commit therefore moves _rcu_barrier()'s set of per-CPU rcu_head structures from per-CPU variables to the existing per-CPU and per-RCU-flavor rcu_data structures. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r--kernel/rcutree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h
index 049896a835d9..586d93c978f2 100644
--- a/kernel/rcutree.h
+++ b/kernel/rcutree.h
@@ -314,6 +314,9 @@ struct rcu_data {
314 unsigned long n_rp_need_fqs; 314 unsigned long n_rp_need_fqs;
315 unsigned long n_rp_need_nothing; 315 unsigned long n_rp_need_nothing;
316 316
317 /* 6) _rcu_barrier() callback. */
318 struct rcu_head barrier_head;
319
317 int cpu; 320 int cpu;
318 struct rcu_state *rsp; 321 struct rcu_state *rsp;
319}; 322};