Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: scsi_dh_alua: Remove check for ASC 24h in alua_rtpg()

Some arrays return ILLEGAL_REQUEST with ASC 00h if they don't support the
RTPG extended header so remove the check for INVALID FIELD IN CDB.

Link: https://lore.kernel.org/r/20210331201154.20348-1-emilne@redhat.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Ewan D. Milne and committed by
Martin K. Petersen
bc3f2b42 22ec513e

+3 -2
+3 -2
drivers/scsi/device_handler/scsi_dh_alua.c
··· 579 579 * even though it shouldn't according to T10. 580 580 * The retry without rtpg_ext_hdr_req set 581 581 * handles this. 582 + * Note: some arrays return a sense key of ILLEGAL_REQUEST 583 + * with ASC 00h if they don't support the extended header. 582 584 */ 583 585 if (!(pg->flags & ALUA_RTPG_EXT_HDR_UNSUPP) && 584 - sense_hdr.sense_key == ILLEGAL_REQUEST && 585 - sense_hdr.asc == 0x24 && sense_hdr.ascq == 0) { 586 + sense_hdr.sense_key == ILLEGAL_REQUEST) { 586 587 pg->flags |= ALUA_RTPG_EXT_HDR_UNSUPP; 587 588 goto retry; 588 589 }