]> git.karo-electronics.de Git - linux-beck.git/commit
[PATCH] remove generic__raw_read_trylock()
authorMatthew Wilcox <matthew@wil.cx>
Fri, 29 Sep 2006 08:58:36 +0000 (01:58 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:03 +0000 (09:18 -0700)
commit910067d188d56d80801b71b0ca1f73aa400c7b8c
tree5176ec3f62544cb4d8c3ff33c00d75c877856a17
parente04da1dfd9041e306cb33d1b40b6005c23c5b325
[PATCH] remove generic__raw_read_trylock()

If the cpu has the lock held for write, is interrupted, and the interrupt
handler calls read_trylock(), it's an instant deadlock.

Now, Dave Miller has subsequently pointed out that we don't have any
situations where this can occur.  Nevertheless, we should delete
generic__raw_read_lock (and its associated EXPORT to make Arjan happy) so that
nobody thinks they can use it.

Acked-by: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/spinlock.c