s390/rwlock: add missing local_irq_restore calls
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 16 May 2014 07:35:02 +0000 (09:35 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 20 May 2014 06:58:54 +0000 (08:58 +0200)
commit939c5ae4029e1679bb93f7d09afb8c831db985bd
treeec977875b12965b54a340ac938b07501ec1ed8c4
parentbae8f567344a7cb6a23ca6e13096ba785c69eb42
s390/rwlock: add missing local_irq_restore calls

The out of line _raw_read_lock_wait_flags/_raw_write_lock_wait_flags
functions for the arch_read_lock_flags/arch_write_lock_flags  calls
fail to re-enable the interrupts after another unsuccessful try to
get the lock with compare-and-swap. The following wait would be
done with interrupts disabled which is suboptimal.

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