scsi_internal_device_block - internal function to put a device temporarily into the SDEV_BLOCK state
2. SYNOPSIS ▲
int scsi_internal_device_block(struct scsi_device * sdev );
3. ARGUMENTS ▲
device to block
4. DESCRIPTION ▲
Block request made by scsi lldAqs to temporarily stop all scsi commands on the specified device. Called from interrupt or normal process context.
Returns zero if successful or error if not
5. NOTES ▲
This routine transitions the device to the SDEV_BLOCK state (which must be a legal transition). When the device is in this state, all commands are deferred until the scsi lld reenables the device with scsi_device_unblock or device_block_tmo fires.
6. AUTHORS ▲
James Bottomley <>
Rob Landley <>
7. COPYRIGHT ▲