[SCSI] libsas: restore scan order
ata devices are always scanned after ssp. Prior to the ata error handling reworks libsas would tend to scan devices in ascending expander phy order. Restore this ordering by deferring ssp discovery to a DISCE_PROBE event, and keep the probe order consistent with the discovery order, not the placement of sata devices. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:

committed by
James Bottomley

parent
c666aae691
commit
92625f9bff
@@ -806,9 +806,7 @@ static struct domain_device *sas_ex_discover_end_dev(
|
||||
child->rphy = rphy;
|
||||
sas_fill_in_rphy(child, rphy);
|
||||
|
||||
spin_lock_irq(&parent->port->dev_list_lock);
|
||||
list_add_tail(&child->dev_list_node, &parent->port->dev_list);
|
||||
spin_unlock_irq(&parent->port->dev_list_lock);
|
||||
list_add_tail(&child->disco_list_node, &parent->port->disco_list);
|
||||
|
||||
res = sas_discover_end_dev(child);
|
||||
if (res) {
|
||||
|
Reference in New Issue
Block a user