Name
scsi_internal_device_unblock —
resume a device after a block request
Synopsis
int scsi_internal_device_unblock ( | struct scsi_device * sdev, |
| enum scsi_device_state new_state) ; |
Arguments
sdev
device to resume
new_state
state to set the device to after unblocking
Description
Restart the device queue for a previously suspended SCSI device. May sleep.
Returns zero if successful or a negative error code upon failure.
Notes
This routine transitions the device to the SDEV_RUNNING state or to one of
the offline states (which must be a legal transition) allowing the midlayer
to goose the queue for this device.