[SCSI] mpt2sas: Freeze the sdev IO queue when firmware sends internal dev reset
authorKashyap, Desai <kashyap.desai@lsi.com>
Wed, 23 Sep 2009 12:05:41 +0000 (17:35 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 29 Oct 2009 17:03:15 +0000 (13:03 -0400)
commit8ffc457ed6fe33728657a0cfb7509b90d554c21f
tree322b183b1883079e7114edfb4006a04b33574cda
parent463217bfecbf5d17a30133a55553d94aa9fc255e
[SCSI] mpt2sas: Freeze the sdev IO queue when firmware sends internal dev reset

When receiving the MPI2_EVENT_SAS_DEV_STAT_RC_INTERNAL_DEVICE_RESET event,
the driver will set the tm_busy flag in the sdev private host data, When
tm_busy flag is set, the driver will return SCSI_MLQUEUE_DEVICE_BUSY,
effectly freezing the IO to the device. The tm_busy flag is cleared with the
MPI2_EVENT_SAS_DEV_STAT_RC_CMP_INTERNAL_DEV_RESET event.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: Eric Moore <Eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c