]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
s390/rwlock: improve writer fairness
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 22 Sep 2014 14:25:25 +0000 (16:25 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Sep 2014 08:52:12 +0000 (10:52 +0200)
commit94232a4332de3bc210e7067fd43521b3eb12336a
treec89dddb5957396d5ae1b9814496064ad6135fa9a
parent2684e73a861fe7b2ab763f442207025a1d9bb6a6
s390/rwlock: improve writer fairness

Set the write-lock bit in the out-of-line rwlock code to indicate that
a writer is waiting. Additional readers will no be able to get the lock
until at least one writer got the lock. Additional writers have to wait
for the first writer to release the lock again.

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