[MIPS] Fix __raw_read_trylock() to allow multiple readers
commitd52c2d5a626a2cb1848fa7063b3ab79e2752dac7
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>
Wed, 7 Mar 2007 00:07:17 +0000 (7 00:07 +0000)
treede525a4b04f3710d965a662f26d402e872a21247
parentd0c91ae2bb3df9d7bef279d8f400e0c8ddde0b5e
[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