summaryrefslogtreecommitdiffstats
path: root/kernel/locking
diff options
context:
space:
mode:
authorAndrea Parri2018-02-27 05:00:58 +0100
committerIngo Molnar2018-03-12 10:59:03 +0100
commitfbfcd0199170984bd3c2812e49ed0fe7b226959a (patch)
treea17482251a965cb047cda3d91bbc4810aeb3a48b /kernel/locking
parenttools/memory-model: Finish the removal of rb-dep, smp_read_barrier_depends(),... (diff)
downloadkernel-qcow2-linux-fbfcd0199170984bd3c2812e49ed0fe7b226959a.tar.gz
kernel-qcow2-linux-fbfcd0199170984bd3c2812e49ed0fe7b226959a.tar.xz
kernel-qcow2-linux-fbfcd0199170984bd3c2812e49ed0fe7b226959a.zip
locking/xchg/alpha: Remove superfluous memory barriers from the _local() variants
The following two commits: 79d442461df74 ("locking/xchg/alpha: Clean up barrier usage by using smp_mb() in place of __ASM__MB") 472e8c55cf662 ("locking/xchg/alpha: Fix xchg() and cmpxchg() memory ordering bugs") ... ended up adding unnecessary barriers to the _local() variants on Alpha, which the previous code took care to avoid. Fix them by adding the smp_mb() into the cmpxchg() macro rather than into the ____cmpxchg() variants. Reported-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Andrea Parri <parri.andrea@gmail.com> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matt Turner <mattst88@gmail.com> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Richard Henderson <rth@twiddle.net> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-alpha@vger.kernel.org Fixes: 472e8c55cf662 ("locking/xchg/alpha: Fix xchg() and cmpxchg() memory ordering bugs") Fixes: 79d442461df74 ("locking/xchg/alpha: Clean up barrier usage by using smp_mb() in place of __ASM__MB") Link: http://lkml.kernel.org/r/1519704058-13430-1-git-send-email-parri.andrea@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking')
0 files changed, 0 insertions, 0 deletions