scsi: devinfo: BLIST_RETRY_ASC_C1 for Fujitsu ETERNUS
authorMartin Wilck <mwilck@suse.com>
Tue, 17 Apr 2018 23:35:11 +0000 (01:35 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Apr 2018 23:14:36 +0000 (19:14 -0400)
commitc360652006bba40837cf16d5099ea61f7ce16c63
treec3c4e5683c0b41737e8d2040789180cef184120d
parent29cfc2ab71d9642c2f4fda6cd278309cc253ff82
scsi: devinfo: BLIST_RETRY_ASC_C1 for Fujitsu ETERNUS

On Fujitsu ETERNUS systems, sense code ABORTED COMMAND with ASC/Q C1/01
is used to indicate temporary condition where the storage-internal path
to a target is switched from one controller to another. SCSI commands
that return with this error code must be retried unconditionally
(i.e. without the "maybe_retry" logic in scsi_decide_disposition);
otherwise dm-multipath might initiate a failover from a healthy path
e.g. for REQ_FAILFAST_DEV commands.

Introduce a new blist flag for this case.

[mkp: applied by hand]

Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_devinfo.c
drivers/scsi/scsi_error.c
include/scsi/scsi_devinfo.h