[MIPS] Fix __raw_read_trylock() to allow multiple readers
commit670bc5b5c9262a425c09d44f092348f78c0d9fe6
authorDave Johnson <djohnson+linux-mips@sw.starentnetworks.com>
Tue, 6 Mar 2007 01:50:27 +0000 (5 20:50 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 6 Mar 2007 14:13:01 +0000 (6 14:13 +0000)
tree2c1756fdadb3957cdae5b66f790fbdce201778a3
parent28a3a7fc2dfad409b1d6555b0e9e67b515db9c37
[MIPS] Fix __raw_read_trylock() to allow multiple readers

A deadlock can occur for mixed irq and non-irq rwlock readers if a 2nd
reader attempts to take lock by looping around __raw_read_trylock().

Signed-off-by: Dave Johnson <djohnson+linux-mips@sw.starentnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/spinlock.h