aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-12-21 17:55:38 -0500
committerJames Bottomley <JBottomley@Parallels.com>2012-02-29 13:51:48 -0500
commit0508c2f3b701f3cd8ed52b2a4abbb2a670f69ce2 (patch)
treebe2eabce601aca56bd5861f71049da96f6aef3cc /drivers
parent36a399473902a57218dc493c5a814708a56b73ab (diff)
[SCSI] libsas: don't mark expanders as gone when a child device is removed
Commit 56dd2c06 "[SCSI] libsas: Don't issue commands to devices that have been hot-removed" marked the parent device of an end-device as gone when all the phys to the end device have been deleted. The expander device is still present until its parent is removed. This is a benign change until the smp_execute_task() path is taught to check ->gone. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libsas/sas_expander.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index 32e417e6c2f7..7701ab588404 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -1820,7 +1820,6 @@ static void sas_unregister_devs_sas_addr(struct domain_device *parent,
1820 break; 1820 break;
1821 } 1821 }
1822 } 1822 }
1823 set_bit(SAS_DEV_GONE, &parent->state);
1824 sas_disable_routing(parent, phy->attached_sas_addr); 1823 sas_disable_routing(parent, phy->attached_sas_addr);
1825 } 1824 }
1826 memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE); 1825 memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE);