aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_scsih.c
diff options
context:
space:
mode:
authorsreekanth.reddy@lsi.com <sreekanth.reddy@lsi.com>2012-07-17 06:26:13 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-08-24 05:10:27 -0400
commit14aa7f7eaf8bb1443d043615d8b4827821292204 (patch)
tree14b8bb0fb01564aac67672fce99374ccfd1acbe6 /drivers/scsi/mpt2sas/mpt2sas_scsih.c
parent4b193175364ac2c31999f0e571df02a6b9315c8c (diff)
[SCSI] mpt2sas: Fix for With post diag reset same set of device gets added, removed and then again gets added with new target ids
When device discovery is disabled during driver load time using module parameter "disable_discovery=1" and when diag reset is issued then from logs, it is observed that the devices get added, removed and then added with new target ids. So, in order to limit this turn-off the code which is deleting and devices across host reset when the disable_discovery module parameter is turned on. Signed-off-by: Sreekanth Reddy <sreekanth.reddy@lsi.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index 66c773662694..7d774c5ffcee 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -7264,7 +7264,8 @@ mpt2sas_scsih_reset_handler(struct MPT2SAS_ADAPTER *ioc, int reset_phase)
7264 _scsih_search_responding_sas_devices(ioc); 7264 _scsih_search_responding_sas_devices(ioc);
7265 _scsih_search_responding_raid_devices(ioc); 7265 _scsih_search_responding_raid_devices(ioc);
7266 _scsih_search_responding_expanders(ioc); 7266 _scsih_search_responding_expanders(ioc);
7267 if (!ioc->is_driver_loading) { 7267 if ((!ioc->is_driver_loading) && !(disable_discovery > 0 &&
7268 !ioc->sas_hba.num_phys)) {
7268 _scsih_prep_device_scan(ioc); 7269 _scsih_prep_device_scan(ioc);
7269 _scsih_search_responding_sas_devices(ioc); 7270 _scsih_search_responding_sas_devices(ioc);
7270 _scsih_search_responding_raid_devices(ioc); 7271 _scsih_search_responding_raid_devices(ioc);