]> git.karo-electronics.de Git - linux-beck.git/commit
s390/spinlock: use correct barriers
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 11 Sep 2015 14:09:56 +0000 (16:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:00 +0000 (14:32 +0200)
commite0af21c56ddd592b33f74f986a2cb4478b10786e
treec5dd2779855656d9fda7eb7d1b90218b2a3f4599
parent9a21268360f5438796fa935e0b2e9317187ef8f4
s390/spinlock: use correct barriers

_raw_write_lock_wait first sets the high order bit to indicate a
pending writer and then waits for the reader to drop to zero.
smp_rmb by definition only orders reads against reads. Let's use
a full smp_mb instead. As right now smp_rmb is implemented
as full serialization, this needs no stable backport, but this
patch will be necessary if we reimplement smp_rmb.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/spinlock.c