'\" t .\" Title: fc_block_scsi_eh .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "FC_BLOCK_SCSI_EH" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "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" fc_block_scsi_eh \- Block SCSI eh thread for blocked fc_rport .SH "SYNOPSIS" .HP \w'int\ fc_block_scsi_eh('u .BI "int fc_block_scsi_eh(struct\ scsi_cmnd\ *\ " "cmnd" ");" .SH "ARGUMENTS" .PP \fIstruct scsi_cmnd * cmnd\fR .RS 4 SCSI command that scsi_eh is trying to recover .RE .SH "DESCRIPTION" .PP This routine can be called from a FC LLD scsi_eh callback\&. It blocks the scsi_eh thread until the fc_rport leaves the FC_PORTSTATE_BLOCKED, or the fast_io_fail_tmo fires\&. This is necessary to avoid the scsi_eh failing recovery actions for blocked rports which would lead to offlined SCSI devices\&. .SH "RETURN" .PP 0 if the fc_rport left the state FC_PORTSTATE_BLOCKED\&. FAST_IO_FAIL if the fast_io_fail_tmo fired, this should be passed back to scsi_eh\&. .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