Patchwork [v2,25/28] libsas: don't mark expanders as gone when a child device is removed

mail settings
Submitter Dan Williams
Date Dec. 23, 2011, 3 a.m.
Message ID <20111223030038.21827.61137.stgit@localhost6.localdomain6>
Download mbox | patch
Permalink /patch/132961/
State Not Applicable
Delegated to: David Miller
Headers show


Dan Williams - Dec. 23, 2011, 3 a.m.
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

Signed-off-by: Dan Williams <>
 drivers/scsi/libsas/sas_expander.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to
More majordomo info at


diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index 5e1eec9..d9c2769 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,
-		parent->gone = 1;
 		sas_disable_routing(parent, phy->attached_sas_addr);
 	memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE);