summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Skirvin2011-09-29 03:47:56 +0200
committerJames Bottomley2011-10-02 20:22:28 +0200
commitcdd05f05b4adefccfa9fce7d0e10c50f38f8a4bd (patch)
tree3d604c60dce1ae6502e00bc43ce21d0713ab6e41
parent[SCSI] isci: fix decode of DONE_CRC_ERR TC completion status (diff)
downloadkernel-qcow2-linux-cdd05f05b4adefccfa9fce7d0e10c50f38f8a4bd.tar.gz
kernel-qcow2-linux-cdd05f05b4adefccfa9fce7d0e10c50f38f8a4bd.tar.xz
kernel-qcow2-linux-cdd05f05b4adefccfa9fce7d0e10c50f38f8a4bd.zip
[SCSI] isci: The port state should be set to stopping on the last phy.
Fixes a bug where any phy removed from the port set the port state to "stopping" - do this only when the last phy removed from the port. Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/isci/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/port.c b/drivers/scsi/isci/port.c
index 8f6f9b77e41a..8e59c8865dcd 100644
--- a/drivers/scsi/isci/port.c
+++ b/drivers/scsi/isci/port.c
@@ -294,8 +294,8 @@ static void isci_port_link_down(struct isci_host *isci_host,
__func__, isci_device);
set_bit(IDEV_GONE, &isci_device->flags);
}
+ isci_port_change_state(isci_port, isci_stopping);
}
- isci_port_change_state(isci_port, isci_stopping);
}
/* Notify libsas of the borken link, this will trigger calls to our