From: Anthony Liguori Date: Thu, 7 Feb 2008 01:25:04 +0000 (-0600) Subject: 9p: Convert semaphore to spinlock for p9_idpool X-Git-Tag: v2.6.25-rc1~511^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dea7bbb603735ceceb07bb370eca17198faf7c8d;p=pandora-kernel.git 9p: Convert semaphore to spinlock for p9_idpool When booting from v9fs, down_interruptible in p9_idpool_get() triggered a BUG as it was being called with IRQs disabled. A spinlock seems like the right thing to be using since the idr functions go out of their way not to sleep. This patch eliminates the BUG by converting the semaphore to a spinlock. Signed-off-by: Anthony Liguori Acked-by: Eric Van Hensbergen --- Reading git-diff-tree failed