]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] libsas: fix sas_find_bcast_phy() in the presence of 'vacant' phys
authorThomas Jackson <thomas.p.jackson@intel.com>
Sat, 18 Feb 2012 02:33:10 +0000 (18:33 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
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: <stable@vger.kernel.org>
Signed-off-by: Thomas Jackson <thomas.p.jackson@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_expander.c