linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/10] scsi: Fix internal host code use
@ 2022-08-12  1:00 Mike Christie
  2022-08-12  1:00 ` [PATCH v2 01/10] scsi: xen: Drop use of internal host codes Mike Christie
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Mike Christie @ 2022-08-12  1:00 UTC (permalink / raw)
  To: jgross, njavali, pbonzini, jasowang, mst, stefanha, oneukum,
	mrochs, ukrishn, martin.petersen, linux-scsi, james.bottomley

The following patches made over Martin's 5.20 staging branch fix an issue
where we intended the host codes:

DID_TARGET_FAILURE
DID_NEXUS_FAILURE
DID_ALLOC_FAILURE
DID_MEDIUM_ERROR

to be internal to scsi-ml and used to tell the completion path what type
of error it was without having to re-parse the sense, host codes and
status. But at some point drivers started using them and the driver
writers never updated scsi-ml, so we now have the bugs:

1. scsi_result_to_blk_status clears those codes, so they are not
propagated upwards. SG IO/passthrough users will then not see an error
and think a command was successful.

2. The SCSI error handler runs because scsi_decide_disposition has no
case statements for them and we return FAILED.

This patchset converts the drivers to stop using these codes, and then
moves them to scsi_priv.h in a new error byte so they can only be used
by scsi-ml.

v2:
- Rename SPACE_ALLOC to NOSPC
- Fix up email subject formatting
- Drop part of xen patch that removed zen definitions.




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-09-07  2:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12  1:00 [PATCH v2 00/10] scsi: Fix internal host code use Mike Christie
2022-08-12  1:00 ` [PATCH v2 01/10] scsi: xen: Drop use of internal host codes Mike Christie
2022-08-15  6:12   ` Juergen Gross
2022-08-12  1:00 ` [PATCH v2 02/10] scsi: storvsc: Drop DID_TARGET_FAILURE use Mike Christie
2022-08-12  1:00 ` [PATCH v2 03/10] scsi: uas: " Mike Christie
2022-08-12  1:00 ` [PATCH v2 04/10] scsi: virtio_scsi: " Mike Christie
2022-08-12  1:00 ` [PATCH v2 05/10] scsi: virtio_scsi: Drop DID_NEXUS_FAILURE use Mike Christie
2022-08-12  1:00 ` [PATCH v2 06/10] scsi: qla2xxx: Drop DID_TARGET_FAILURE use Mike Christie
2022-08-19 19:42   ` Himanshu Madhani
2022-08-12  1:00 ` [PATCH v2 07/10] scsi: cxlflash: Drop DID_ALLOC_FAILURE use Mike Christie
2022-08-12  1:00 ` [PATCH v2 08/10] scsi: Add error codes for internal scsi-ml use Mike Christie
2022-08-12  1:00 ` [PATCH v2 09/10] scsi: Convert scsi_decide_disposition to use SCSIML_STAT Mike Christie
2022-08-12  1:00 ` [PATCH v2 10/10] scsi: Remove useless host error codes Mike Christie
2022-09-07  2:14 ` [PATCH v2 00/10] scsi: Fix internal host code use Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).