Skip to contentSkip to conversation

mpt2sas : Do not reset handle before calling _scsih_remove_device in RESCAN task after HBA RESET

PATCH New Kashyap, Desai 1 participant 1 message Mar 17, 2010 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpt2sas : Do not reset handle before calling _scsih_remove_device in RESCAN task after HBA RESET

This patch needs to be apply on top of 04.100.01.02 version of mpt2sas driver.

Setting handle to zero is not required before _scsih_remove_device. Driver uses sas_device->handle reference in _scsih_remove_device.

---

drivers/scsi/mpt2sas/mpt2sas_scsih.c +0 -2
index b2d6d75..c62adda 100644
@@ -5635,8 +5635,6 @@ _scsih_remove_unresponding_sas_devices(struct MPT2SAS_ADAPTER *ioc)
 			    (unsigned long long)
 			    sas_device->enclosure_logical_id,
 			    sas_device->slot);
-		/* invalidate the device handle */
-		sas_device->handle = 0;
 		_scsih_remove_device(ioc, sas_device);
 	}