Commit 9ea72909 authored by Alan Stern's avatar Alan Stern Committed by James Bottomley

[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: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 03aba2f7
...@@ -2026,6 +2026,7 @@ scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state) ...@@ -2026,6 +2026,7 @@ scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state)
switch (oldstate) { switch (oldstate) {
case SDEV_CREATED: case SDEV_CREATED:
case SDEV_RUNNING: case SDEV_RUNNING:
case SDEV_QUIESCE:
case SDEV_OFFLINE: case SDEV_OFFLINE:
case SDEV_BLOCK: case SDEV_BLOCK:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment