---
name: "scsi_block_when_processing_errors"
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_block_when_processing_errors"
---

# scsi\_block\_when\_processing\_errors(9)

Prevent cmds from being queued.

## NAME

scsi\_block\_when\_processing\_errors - Prevent cmds from being queued.

## SYNOPSIS

**int scsi\_block\_when\_processing\_errors(struct scsi\_device \*** *sdev***);**

## ARGUMENTS

*sdev*

Device on which we are performing recovery.

## DESCRIPTION

We block until the host is out of error recovery, and then check to see whether the host or the device is offline.

Return value: 0 when dev was taken offline by error recovery. 1 OK to proceed.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
