]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[SCSI] mpt2sas: Fix for issue Port Reset taking long time(around 5 mins) to complete...
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>
Wed, 19 Oct 2011 10:07:37 +0000 (15:37 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Dec 2011 16:49:13 +0000 (11:49 -0500)
commit10406c7e99760aafcede8d40e8705e1423162ccb
tree9affc407bb0f4e309cb27466ca34f8d17a546490
parent9ddaf690d2372b355d9cc4e16c0b3f08cef24e03
[SCSI] mpt2sas: Fix for issue Port Reset taking long time(around 5 mins) to complete while issued during creating a volume

This is due to the slave_configuration routine is getting called when
host reset is active, and config page reads are failing, and driver
attempts to added device with stale config data.

To fix the issue, added error checking in slave_configure to check
for configuration pages failing, and return "1" so the device  is
not configured.  The config pages are failing if raid volume is
configured while issuing a host reset, thus driver is reading stale
data and proceeding to attempt to add.  The fix is to return error
so the volume is not configured.

Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c