aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_base.h
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2009-08-20 03:52:00 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-05 10:34:49 -0400
commit155dd4c763694222c125e65438d823f58ea653bc (patch)
tree0db7b5b8d41c165222357ac8dee45482f1425faa /drivers/scsi/mpt2sas/mpt2sas_base.h
parentcd4e12e8ad246ec5bc23ab04d0da0e6985025620 (diff)
[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 <kashyap.desai@lsi.com> Reviewed-by: Eric Moore <Eric.moore@lsi.com> Cc: Stable Tree <stable@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_base.h')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_base.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h
index 998a7b847b3d..15827582a90e 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.h
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.h
@@ -432,7 +432,7 @@ typedef void (*MPT_ADD_SGE)(void *paddr, u32 flags_length, dma_addr_t dma_addr);
432 * @fw_event_list: list of fw events 432 * @fw_event_list: list of fw events
433 * @aen_event_read_flag: event log was read 433 * @aen_event_read_flag: event log was read
434 * @broadcast_aen_busy: broadcast aen waiting to be serviced 434 * @broadcast_aen_busy: broadcast aen waiting to be serviced
435 * @ioc_reset_in_progress: host reset in progress 435 * @shost_recovery: host reset in progress
436 * @ioc_reset_in_progress_lock: 436 * @ioc_reset_in_progress_lock:
437 * @ioc_link_reset_in_progress: phy/hard reset in progress 437 * @ioc_link_reset_in_progress: phy/hard reset in progress
438 * @ignore_loginfos: ignore loginfos during task managment 438 * @ignore_loginfos: ignore loginfos during task managment
@@ -545,7 +545,6 @@ struct MPT2SAS_ADAPTER {
545 /* misc flags */ 545 /* misc flags */
546 int aen_event_read_flag; 546 int aen_event_read_flag;
547 u8 broadcast_aen_busy; 547 u8 broadcast_aen_busy;
548 u8 ioc_reset_in_progress;
549 u8 shost_recovery; 548 u8 shost_recovery;
550 spinlock_t ioc_reset_in_progress_lock; 549 spinlock_t ioc_reset_in_progress_lock;
551 u8 ioc_link_reset_in_progress; 550 u8 ioc_link_reset_in_progress;