[SCSI] scsi_error: classify some ILLEGAL_REQUEST sense as a permanent TARGET_ERROR
authorMike Snitzer <snitzer@redhat.com>
Mon, 13 Feb 2012 23:35:11 +0000 (18:35 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 15:39:59 +0000 (09:39 -0600)
commit47ac56db133cb0b6cf3c8b156db854c158fb9dae
treef7b203048444d6aad66c24d9285388058e34cc67
parent89730393f260aef7fce9f6fd475da148517a4c5c
[SCSI] scsi_error: classify some ILLEGAL_REQUEST sense as a permanent TARGET_ERROR

Permanent target failures are non-retryable and should be classified as
TARGET_ERROR; otherwise dm-multipath will retry an IO request that will
always fail at the target.

A SCSI command that fails with ILLEGAL_REQUEST sense and Additional
sense 0x20, 0x21, 0x24 or 0x26 represents a permanent TARGET_ERROR.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_error.c