linux/arch/powerpc
Michael Ellerman 4e43bbd4ab powerpc: Add smp_mb()s to arch_spin_unlock_wait()
commit 78e05b1421 upstream.

Similar to the previous commit which described why we need to add a
barrier to arch_spin_is_locked(), we have a similar problem with
spin_unlock_wait().

We need a barrier on entry to ensure any spinlock we have previously
taken is visibly locked prior to the load of lock->slock.

It's also not clear if spin_unlock_wait() is intended to have ACQUIRE
semantics. For now be conservative and add a barrier on exit to give it
ACQUIRE semantics.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-10-05 13:41:08 -07:00
..
boot Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2014-06-12 21:23:38 -07:00
configs powerpc: Remove platforms/wsp and associated pieces 2014-06-11 16:35:38 +10:00
crypto powerpc: Fix compile of sha1-powerpc-asm.S on 32-bit 2013-03-05 16:56:26 +11:00
include powerpc: Add smp_mb() to arch_spin_is_locked() 2014-10-05 13:41:08 -07:00
kernel powerpc/powernv: Fix IOMMU group lost 2014-09-17 09:21:50 -07:00
kvm KVM: PPC: Book3S: Fix LPCR one_reg interface 2014-09-05 16:36:32 -07:00
lib powerpc: Add smp_mb()s to arch_spin_unlock_wait() 2014-10-05 13:41:08 -07:00
math-emu powerpc: Correct emulated mtfsf instruction 2014-04-07 10:33:11 +10:00
mm powerpc/thp: Use ACCESS_ONCE when loading pmdp 2014-09-17 09:21:57 -07:00
net powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test 2014-06-27 16:14:12 -07:00
oprofile cpufreq: remove unused notifier: CPUFREQ_{SUSPENDCHANGE|RESUMECHANGE} 2014-03-19 14:10:24 +01:00
perf powerpc/perf: Fix ABIv2 kernel backtraces 2014-10-05 13:41:08 -07:00
platforms powerpc/thp: Don't recompute vsid and ssize in loop on invalidate 2014-09-17 09:21:56 -07:00
sysdev powerpc/kmemleak: Do not scan the DART table 2014-06-24 14:29:46 +10:00
xmon powerpc/xmon: avoid format string leaking to printk 2014-06-11 17:04:03 +10:00
Kconfig locking/mutex: Disable optimistic spinning on some architectures 2014-07-16 14:57:07 +02:00
Kconfig.debug powerpc/powernv: Remove OPAL v1 takeover 2014-06-25 13:10:47 +10:00
Makefile Merge branch 'merge' into next 2014-05-28 13:30:12 +10:00
relocs_check.pl Fix warning typo "CONFIG_RELCOATABLE" 2013-05-29 15:11:30 +02:00