Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38183b9c authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Rusty Russell
Browse files

rcu: merge fix for Convert ACCESS_ONCE() to READ_ONCE() and WRITE_ONCE()



This mirrors the change introduced by 7d0ae808 of same title
in Linus' tree; it's not obvious as a merge resolution since we moved
the function.

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent b51d23e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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); \
})