'\" t .\" Title: scsi_block_when_processing_errors .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "SCSI_BLOCK_WHEN_PROC" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" scsi_block_when_processing_errors \- Prevent cmds from being queued\&. .SH "SYNOPSIS" .HP \w'int\ scsi_block_when_processing_errors('u .BI "int scsi_block_when_processing_errors(struct\ scsi_device\ *\ " "sdev" ");" .SH "ARGUMENTS" .PP \fIstruct scsi_device * sdev\fR .RS 4 Device on which we are performing recovery\&. .RE .SH "DESCRIPTION" .PP We block until the host is out of error recovery, and then check to see whether the host or the device is offline\&. .PP Return value: 0 when dev was taken offline by error recovery\&. 1 OK to proceed\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br