Skip to content

Commit

Permalink
[SCSI] isci: The port state should be set to stopping on the last phy.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Skirvin authored and James Bottomley committed Oct 2, 2011
1 parent 7582ba8 commit cdd05f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/isci/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdd05f0

Please sign in to comment.