Skip to contentSkip to conversation

scsi: Do not retry invalid function error

PATCH Applied Hannes Reinecke 2 participants 2 messages Oct 17, 2017 – Oct 18, 2017 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: Do not retry invalid function error

Hitachi USP-V returns 'Invalid function' when the internal staging mechanism encountered an error. These errors should not be retried on another path.

---
 drivers/scsi/scsi_error.c | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/scsi_error.c +1 -0
index 3894205..5086489 100644
@@ -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);
Signature · 1 line
1.8.5.6
#1 lore raw

Hannes,

Quoted 3 lines

Hitachi USP-V returns 'Invalid function' when the internal staging mechanism encountered an error. These errors should not be retried on another path.

s/invalid/illegal/

Applied to 4.15/scsi-queue.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering