[SCSI] mpt2sas: Hold Controller reset when another reset is in progress
commitd274213a1ae59e8abde8d43e1e3a478fe9f28794
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 17 Jun 2010 07:58:55 +0000 (17 13:28 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:02:06 +0000 (27 12:02 -0500)
treea13dcb559d8a444c862fd57bf0c114dd7425018a
parentab6ce92541ea24c6a92be8498d7d1b26c14ec62d
[SCSI] mpt2sas: Hold Controller reset when another reset is in progress

Driver should not allow multiple host reset when already host reset is in
progress. It is possible that host reset was sent by scsi mid layer while there was already an host reset active,
either issued via IOCTL interface or internaly, like a config page timeout.
Since there was a host reset active, the driver would return a FAILED response
to the scsi mid layer. The solution is make sure pending host resets will
wait for the active host reset to complete before returning control
back up the call stack.

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