rcu: merge fix for Convert ACCESS_ONCE() to READ_ONCE() and WRITE_ONCE()
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 28 May 2015 07:20:58 +0000 (17:20 +1000)
committerRusty 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

index eae42c21d5fde9816b3cae961b19dda05e29158a..52bdec710ed7ebb270fa3fbae247c8650ed15571 100644 (file)
@@ -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); \
 })