---
name: "fc_block_scsi_eh"
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/fc_block_scsi_eh"
---

# fc\_block\_scsi\_eh(9)

Block SCSI eh thread for blocked fc\_rport

## NAME

fc\_block\_scsi\_eh - Block SCSI eh thread for blocked fc\_rport

## SYNOPSIS

**int fc\_block\_scsi\_eh(struct scsi\_cmnd \*** *cmnd***);**

## ARGUMENTS

*cmnd*

SCSI command that scsi\_eh is trying to recover

## DESCRIPTION

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.

## RETURN

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.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
