From: Alan Stern Date: Fri, 23 Jun 2006 18:25:34 +0000 (-0400) Subject: [SCSI] SCSI core: Allow QUIESCE -> CANCEL sdev transition X-Git-Tag: accepted/tizen/common/20141203.182822~36234^2^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ea7290902abcf22f796e9aeae4dc2e71d3f7e67;p=platform%2Fkernel%2Flinux-arm64.git [SCSI] SCSI core: Allow QUIESCE -> CANCEL sdev transition We have to be able to remove SCSI devices even when they are suspended, so QUIESCE -> CANCEL must be a legal state transition. This patch (as727) adds the transition to the state machine. Signed-off-by: Alan Stern Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 4c4add5..68e0d7d 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -2026,6 +2026,7 @@ scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state) switch (oldstate) { case SDEV_CREATED: case SDEV_RUNNING: + case SDEV_QUIESCE: case SDEV_OFFLINE: case SDEV_BLOCK: break;