[SCSI] libsas: fix sas_find_bcast_phy() in the presence of 'vacant' phys
authorThomas Jackson <[email protected]>
Sat, 18 Feb 2012 02:33:10 +0000 (18:33 -0800)
committerJames Bottomley <[email protected]>
Mon, 23 Apr 2012 11:06:16 +0000 (12:06 +0100)
commit1699490db339e2c6b3037ea8e7dcd6b2755b688e
tree159907876c773a8d80cef4b3ca142e22f03b8d29
parent22b9153faa2263aa89625de25e71c7d44c8dbd16
[SCSI] libsas: fix sas_find_bcast_phy() in the presence of 'vacant' phys

If an expander reports 'PHY VACANT' for a phy index prior to the one
that generated a BCN libsas fails rediscovery.  Since a vacant phy is
defined as a valid phy index that will never have an attached device
just continue the search.

Cc: <[email protected]>
Signed-off-by: Thomas Jackson <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
drivers/scsi/libsas/sas_expander.c