From: Roland Dreier Date: Thu, 31 Aug 2006 23:43:06 +0000 (-0700) Subject: IB/mthca: Use IRQ safe locks to protect allocation bitmaps X-Git-Tag: v2.6.18-rc6~27^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a4e6dccbc0cd1b726820b782daebf887dcb95e9;p=pandora-kernel.git IB/mthca: Use IRQ safe locks to protect allocation bitmaps It is supposed to be OK to call mthca_create_ah() and mthca_destroy_ah() from any context. However, for mem-full HCAs, these functions use the mthca_alloc() and mthca_free() bitmap helpers, and those helpers use non-IRQ-safe spin_lock() internally. Lockdep correctly warns that this could lead to a deadlock. Fix this by changing mthca_alloc() and mthca_free() to use spin_lock_irqsave(). Signed-off-by: Roland Dreier --- Reading git-diff-tree failed