From: Bhanu Gollapudi Date: Fri, 18 Mar 2011 00:13:26 +0000 (-0700) Subject: [SCSI] bnx2fc: Avoid holding cq_lock when iounmap() is called X-Git-Tag: v2.6.39-rc1~52^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=839900c69d5b8a07a4df8e9bd9d1e59a5c556811;p=pandora-kernel.git [SCSI] bnx2fc: Avoid holding cq_lock when iounmap() is called With kernel debugging enabled, holding cq_lock when calling bnx2fc_free_session_resc() which calls iounmap() leads to a warning stack trace [INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected]. iounmap() grabs a HARDIRQ-unsafe vmlist lock, so holding spin_lock_bh(cq_lock) when calling iounmap() will trigger the LOCKDEP warning. Since cq_lock is required only to guard against deletion, hold the lock just before freeing the cq. Signed-off-by: Bhanu Prakash Gollapudi Signed-off-by: Nithin Nayak Sujir Signed-off-by: Michael Chan Signed-off-by: James Bottomley --- Reading git-diff-tree failed