diff options
author | Hannes Reinecke <hare@suse.de> | 2017-10-17 10:10:56 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-19 03:55:39 +0300 |
commit | a8bbb2ab4e4fac8ebd2a402d5d81500cbeaaebaf (patch) | |
tree | d7d747096298faf2ec9bd3955c00f0d8f952ab08 /drivers/scsi/scsi_error.c | |
parent | 909cf3e16a5274fe2127cf3cea5c8dba77b2c412 (diff) | |
download | linux-a8bbb2ab4e4fac8ebd2a402d5d81500cbeaaebaf.tar.xz |
scsi: scsi_error: Do not retry illegal function error
Hitachi USP-V returns 'ILLEGAL FUNCTION' when the internal staging
mechanism encountered an error. These errors should not be retried on
another path.
[mkp: s/invalid/illegal/]
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 38942050b265..5086489dac97 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -579,6 +579,7 @@ int scsi_check_sense(struct scsi_cmnd *scmd) case ILLEGAL_REQUEST: if (sshdr.asc == 0x20 || /* Invalid command operation code */ sshdr.asc == 0x21 || /* Logical block address out of range */ + sshdr.asc == 0x22 || /* Invalid function */ sshdr.asc == 0x24 || /* Invalid field in cdb */ sshdr.asc == 0x26) { /* Parameter value invalid */ set_host_byte(scmd, DID_TARGET_FAILURE); |