linux-stable/include/scsi
Bart Van Assche 7efadce40a scsi: core: Introduce enum scsi_disposition
[ Upstream commit b8e162f9e7 ]

Improve readability of the code in the SCSI core by introducing an
enumeration type for the values used internally that decide how to continue
processing a SCSI command. The eh_*_handler return values have not been
changed because that would involve modifying all SCSI drivers.

The output of the following command has been inspected to verify that no
out-of-range values are assigned to a variable of type enum
scsi_disposition:

KCFLAGS=-Wassign-enum make CC=clang W=1 drivers/scsi/

Link: https://lore.kernel.org/r/20210415220826.29438-6-bvanassche@acm.org
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 4373534a98 ("scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-23 08:42:15 +01:00
..
fc
fc_encode.h
fc_frame.h
fcoe_sysfs.h
iscsi_if.h
iscsi_proto.h
iser.h
libfc.h
libfcoe.h scsi: fcoe: Fix Wstringop-overflow warnings in fcoe_wwn_from_mac() 2022-06-09 10:21:15 +02:00
libiscsi.h scsi: iscsi: Stop queueing during ep_disconnect 2022-04-20 09:23:15 +02:00
libiscsi_tcp.h
libsas.h scsi: libsas: Introduce more SAM status code aliases in enum exec_status 2023-09-19 12:20:16 +02:00
sas.h
sas_ata.h
scsi.h scsi: core: Introduce enum scsi_disposition 2024-02-23 08:42:15 +01:00
scsi_bsg_iscsi.h
scsi_cmnd.h Revert "scsi: core: Add scsi_prot_ref_tag() helper" 2024-01-12 20:56:38 +01:00
scsi_common.h
scsi_dbg.h
scsi_device.h Revert "scsi: core: Use scsi_cmd_to_rq() instead of scsi_cmnd.request" 2024-01-12 20:56:38 +01:00
scsi_devinfo.h
scsi_dh.h scsi: core: Introduce enum scsi_disposition 2024-02-23 08:42:15 +01:00
scsi_driver.h
scsi_eh.h scsi: core: Introduce enum scsi_disposition 2024-02-23 08:42:15 +01:00
scsi_host.h scsi: core: Use 32-bit hostnum in scsi_host_lookup() 2023-09-19 12:20:19 +02:00
scsi_ioctl.h
scsi_proto.h
scsi_request.h
scsi_tcq.h
scsi_transport.h
scsi_transport_fc.h
scsi_transport_iscsi.h scsi: iscsi: Fix multiple iSCSI session unbind events sent to userspace 2023-02-01 08:23:16 +01:00
scsi_transport_sas.h
scsi_transport_spi.h
scsi_transport_srp.h
scsicam.h
sg.h
srp.h
viosrp.h