瀏覽代碼

[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>
Jeff Skirvin 13 年之前
父節點
當前提交
cdd05f05b4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/isci/port.c

+ 1 - 1
drivers/scsi/isci/port.c

@@ -294,8 +294,8 @@ static void isci_port_link_down(struct isci_host *isci_host,
 					__func__, isci_device);
 					__func__, isci_device);
 				set_bit(IDEV_GONE, &isci_device->flags);
 				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
 	/* Notify libsas of the borken link, this will trigger calls to our