projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba9f207
)
rcu: Add memory barriers
author
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Mon, 16 May 2011 09:24:04 +0000
(
02:24
-0700)
committer
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Thu, 26 May 2011 16:42:20 +0000
(09:42 -0700)
Add the memory barriers added by
e59fb3120b
.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c
patch
|
blob
|
history
diff --git
a/kernel/rcutree.c
b/kernel/rcutree.c
index
e486f7c
..
3731141
100644
(file)
--- a/
kernel/rcutree.c
+++ b/
kernel/rcutree.c
@@
-907,6
+907,12
@@
static void rcu_report_qs_rsp(struct rcu_state *rsp, unsigned long flags)
unsigned long gp_duration;
WARN_ON_ONCE(!rcu_gp_in_progress(rsp));
+
+ /*
+ * Ensure that all grace-period and pre-grace-period activity
+ * is seen before the assignment to rsp->completed.
+ */
+ smp_mb(); /* See above block comment. */
gp_duration = jiffies - rsp->gp_start;
if (gp_duration > rsp->gp_max)
rsp->gp_max = gp_duration;