---
name: "scsi_internal_device_unblock"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_internal_device_unblock"
---

# scsi\_internal\_device\_unblock(9)

resume a device after a block request

## 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 devices to after unblocking

## DESCRIPTION

Called by scsi lld's or the midlayer to restart the device queue for the previously suspended scsi device. Called from interrupt or normal process context.

Returns zero if successful or error if not.

## 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.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
