projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b51d23e
)
rcu: merge fix for Convert ACCESS_ONCE() to READ_ONCE() and WRITE_ONCE()
author
Stephen Rothwell
<sfr@canb.auug.org.au>
Thu, 28 May 2015 07:20:58 +0000
(17:20 +1000)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 24 Jun 2015 00:07:40 +0000
(09:37 +0930)
This mirrors the change introduced by
7d0ae8086b8
of same title
in Linus' tree; it's not obvious as a merge resolution since we moved
the function.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/compiler.h
patch
|
blob
|
history
diff --git
a/include/linux/compiler.h
b/include/linux/compiler.h
index eae42c21d5fde9816b3cae961b19dda05e29158a..52bdec710ed7ebb270fa3fbae247c8650ed15571 100644
(file)
--- a/
include/linux/compiler.h
+++ b/
include/linux/compiler.h
@@
-467,7
+467,7
@@
static __always_inline void __write_once_size(volatile void *p, void *res, int s
*/
#define lockless_dereference(p) \
({ \
- typeof(p) _________p1 =
ACCESS
_ONCE(p); \
+ typeof(p) _________p1 =
READ
_ONCE(p); \
smp_read_barrier_depends(); /* Dependency order vs. p above. */ \
(_________p1); \
})