scsi: zfcp: enhance handling of FC Endpoint Security errors
authorJens Remus <jremus@linux.ibm.com>
Thu, 12 Mar 2020 17:45:04 +0000 (18:45 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Mar 2020 17:12:41 +0000 (13:12 -0400)
commite53d92856e9f1cfa0be284fa1dc3367130ce433a
treead4027f0cb3f66a0924789cd11573b900bce0754
parent616da39e0060f3b8bbc0f36f7d911bb5abb31746
scsi: zfcp: enhance handling of FC Endpoint Security errors

Enable for explicit FCP channel FC Endpoint Security error reporting and
handle any FSF security errors according to specification. Take the
following recovery actions when a FSF_SECURITY_ERROR is reported for the
specified FSF commands:

- Open Port: Retry the command if possible
- Send FCP : Physically close the remote port and reopen

For Open Port the command status is set to error, which triggers a retry.
For Send FCP the command status is set to error and recovery is triggered
to physically reopen the remote port.

Link: https://lore.kernel.org/r/20200312174505.51294-10-maier@linux.ibm.com
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/s390/scsi/zfcp_fsf.c
drivers/s390/scsi/zfcp_fsf.h