diff options
author | John David Anglin <dave.anglin@bell.net> | 2018-11-06 12:00:01 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-11-06 12:03:22 +0100 |
commit | 86d4d068df573a8c2105554624796c086d6bec3d (patch) | |
tree | 5968f43762711e2aa98d92e8775600ffe9b03a4f /arch/parisc/include | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
download | linux-stable-86d4d068df573a8c2105554624796c086d6bec3d.tar.gz linux-stable-86d4d068df573a8c2105554624796c086d6bec3d.tar.bz2 linux-stable-86d4d068df573a8c2105554624796c086d6bec3d.zip |
parisc: Revert "Release spinlocks using ordered store"
This reverts commit d27dfa13b9f77ae7e6ed09d70a0426ed26c1a8f9.
Unfortunately, this patch needs to be reverted. We need the full sync
barrier and not the limited barrier provided by using an ordered store.
The sync ensures that all accesses and cache purge instructions that
follow the sync are performed after all such instructions prior the sync
instruction have completed executing.
The patch breaks the rwlock implementation in glibc. This caused the
test-lock application in the libprelude testsuite to hang. With the
change reverted, the test runs correctly and the libprelude package
builds successfully.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include')
-rw-r--r-- | arch/parisc/include/asm/spinlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/include/asm/spinlock.h b/arch/parisc/include/asm/spinlock.h index 16aec9ba2580..8a63515f03bf 100644 --- a/arch/parisc/include/asm/spinlock.h +++ b/arch/parisc/include/asm/spinlock.h @@ -37,8 +37,8 @@ static inline void arch_spin_unlock(arch_spinlock_t *x) volatile unsigned int *a; a = __ldcw_align(x); - /* Release with ordered store. */ - __asm__ __volatile__("stw,ma %0,0(%1)" : : "r"(1), "r"(a) : "memory"); + mb(); + *a = 1; } static inline int arch_spin_trylock(arch_spinlock_t *x) |