1FC_BLOCK_SCSI_EH(9)             SCSI mid layer             FC_BLOCK_SCSI_EH(9)
2
3
4

NAME

6       fc_block_scsi_eh - Block SCSI eh thread for blocked fc_rport
7

SYNOPSIS

9       int fc_block_scsi_eh(struct scsi_cmnd * cmnd);
10

ARGUMENTS

12       cmnd
13           SCSI command that scsi_eh is trying to recover
14

DESCRIPTION

16       This routine can be called from a FC LLD scsi_eh callback. It blocks
17       the scsi_eh thread until the fc_rport leaves the FC_PORTSTATE_BLOCKED,
18       or the fast_io_fail_tmo fires. This is necessary to avoid the scsi_eh
19       failing recovery actions for blocked rports which would lead to
20       offlined SCSI devices.
21

RETURNS

23       0 if the fc_rport left the state FC_PORTSTATE_BLOCKED. FAST_IO_FAIL if
24       the fast_io_fail_tmo fired, this should be passed back to scsi_eh.
25

AUTHORS

27       James Bottomley <James.Bottomley@hansenpartnership.com>
28           Author.
29
30       Rob Landley <rob@landley.net>
31           Author.
32
34Kernel Hackers Manual 2.6.         June 2019               FC_BLOCK_SCSI_EH(9)
Impressum