From: Kashyap, Desai Date: Thu, 20 Aug 2009 07:52:00 +0000 (+0530) Subject: [SCSI] mpt2sas: Prevent sending command to FW while Host Reset X-Git-Tag: v2.6.32-rc1~689^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=155dd4c763694222c125e65438d823f58ea653bc;p=pandora-kernel.git [SCSI] mpt2sas: Prevent sending command to FW while Host Reset This patch renames the flag for indicating host reset from ioc_reset_in_progress to shost_recovery. It also removes the spin locks surrounding the setting of this flag, which are unnecessary. Sanity checks on the shost_recovery flag were added thru out the code so as to prevent sending firmware commands during host reset. Also, the setting of the shost state to SHOST_RECOVERY was removed to prevent deadlocks, this is actually better handled by the shost_recovery flag. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Cc: Stable Tree Signed-off-by: James Bottomley --- Reading git-diff-tree failed