Home
last modified time | relevance | path

Searched hist:e0af21c5 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/s390/lib/
H A Dspinlock.ce0af21c5 Fri Sep 11 09:09:56 CDT 2015 Christian Borntraeger <borntraeger@de.ibm.com> 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>
e0af21c5 Fri Sep 11 09:09:56 CDT 2015 Christian Borntraeger <borntraeger@de.ibm.com> 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>