mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
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>
This commit is contained in:
parent
909cf3e16a
commit
a8bbb2ab4e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user