]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SCSI] isci: The port state should be set to stopping on the last phy.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Thu, 29 Sep 2011 01:47:56 +0000 (18:47 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 2 Oct 2011 18:22:28 +0000 (13:22 -0500)
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>
drivers/scsi/isci/port.c

index 8f6f9b77e41a45f46cfbe358af0e732307d8b26f..8e59c8865dcdc06911bdda139088825230e95692 100644 (file)
@@ -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