Name

scsi_internal_device_block_nowait — try to transition to the SDEV_BLOCK state

Synopsis

int scsi_internal_device_block_nowait (struct scsi_device * sdev);
 

Arguments

sdev

device to block

Description

Pause SCSI command processing on the specified device. Does not sleep.

Returns zero if successful or a negative error code upon failure.

Notes

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.