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

Configure Feed

Select the types of activity you want to include in your feed.

scsi: core: Remove useless host error codes

The host codes that were supposed to only be used for internal use are now
not used, so remove them.

Link: https://lore.kernel.org/r/20220812010027.8251-11-michael.christie@oracle.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Mike Christie and committed by
Martin K. Petersen
68a3a910 7dfaae6a

+6 -6
+6 -6
include/scsi/scsi_status.h
··· 62 62 * recover the link. Transport class will 63 63 * retry or fail IO */ 64 64 DID_TRANSPORT_FAILFAST = 0x0f, /* Transport class fastfailed the io */ 65 - DID_TARGET_FAILURE = 0x10, /* Permanent target failure, do not retry on 66 - * other paths */ 67 - DID_NEXUS_FAILURE = 0x11, /* Permanent nexus failure, retry on other 68 - * paths might yield different results */ 69 - DID_ALLOC_FAILURE = 0x12, /* Space allocation on the device failed */ 70 - DID_MEDIUM_ERROR = 0x13, /* Medium error */ 65 + /* 66 + * We used to have DID_TARGET_FAILURE, DID_NEXUS_FAILURE, 67 + * DID_ALLOC_FAILURE and DID_MEDIUM_ERROR at 0x10 - 0x13. For compat 68 + * with userspace apps that parse the host byte for SG IO, we leave 69 + * that block of codes unused and start at 0x14 below. 70 + */ 71 71 DID_TRANSPORT_MARGINAL = 0x14, /* Transport marginal errors */ 72 72 }; 73 73