scsi_internal_device_block_nowait — try to transition to the SDEV_BLOCK state
int scsi_internal_device_block_nowait ( | struct scsi_device * sdev) ; |
Pause SCSI command processing on the specified device. Does not sleep.
Returns zero if successful or a negative error code upon failure.
This routine transitions the device to the SDEV_BLOCK state (which must be
a legal transition). When the device is in this state, command processing
is paused until the device leaves the SDEV_BLOCK state. See also
scsi_internal_device_unblock_nowait
.