Re: [PATCH 1/2] locking/xchg/alpha: Use smp_mb() in place of __ASM__MB

2018-02-22 Thread Paul E. McKenney
On Thu, Feb 22, 2018 at 10:24:29AM +0100, Andrea Parri wrote: > Replace each occurrence of __ASM__MB with a (trailing) smp_mb() in > xchg(), cmpxchg(), and remove the now unused __ASM__MB definitions; > this improves readability, with no additional synchronization cost. > > Suggested-by: Will

[PATCH 1/2] locking/xchg/alpha: Use smp_mb() in place of __ASM__MB

2018-02-22 Thread Andrea Parri
Replace each occurrence of __ASM__MB with a (trailing) smp_mb() in xchg(), cmpxchg(), and remove the now unused __ASM__MB definitions; this improves readability, with no additional synchronization cost. Suggested-by: Will Deacon Signed-off-by: Andrea Parri