WSL2-Linux-Kernel/Documentation/scsi
Bart Van Assche dee7121e8c scsi: core: Change the return type of .eh_timed_out()
Commit 6600593cbd ("block: rename BLK_EH_NOT_HANDLED to BLK_EH_DONE")
made it impossible for .eh_timed_out() implementations to call
scsi_done() without causing a crash.

Restore support for SCSI timeout handlers to call scsi_done() as follows:

 * Change all .eh_timed_out() handlers as follows:

   - Change the return type into enum scsi_timeout_action.
   - Change BLK_EH_RESET_TIMER into SCSI_EH_RESET_TIMER.
   - Change BLK_EH_DONE into SCSI_EH_NOT_HANDLED.

 * In scsi_timeout(), convert the SCSI_EH_* values into BLK_EH_* values.

Reviewed-by: Lee Duncan <lduncan@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Mike Christie <michael.christie@oracle.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20221018202958.1902564-3-bvanassche@acm.org
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-10-22 03:25:59 +00:00
..
scsi_transport_srp
53c700.rst
BusLogic.rst
ChangeLog.arcmsr
ChangeLog.ips
ChangeLog.lpfc scsi: docs: Fix a typo 2022-09-01 00:33:34 -04:00
ChangeLog.megaraid
ChangeLog.megaraid_sas
ChangeLog.ncr53c8xx
ChangeLog.sym53c8xx
ChangeLog.sym53c8xx_2
FlashPoint.rst
LICENSE.FlashPoint
NinjaSCSI.rst
aacraid.rst
advansys.rst
aha152x.rst
aic7xxx.rst
aic79xx.rst
arcmsr_spec.rst
bfa.rst
bnx2fc.rst
cxgb3i.rst
dc395x.rst
dpti.rst
g_NCR5380.rst
hpsa.rst
hptiop.rst
index.rst
libsas.rst
link_power_management_policy.rst
lpfc.rst
megaraid.rst
ncr53c8xx.rst
ppa.rst
qlogicfas.rst
scsi-changer.rst
scsi-generic.rst
scsi-parameters.rst
scsi.rst
scsi_eh.rst scsi: core: Change the return type of .eh_timed_out() 2022-10-22 03:25:59 +00:00
scsi_fc_transport.rst
scsi_mid_low_api.rst
sd-parameters.rst
smartpqi.rst
st.rst
sym53c8xx_2.rst
sym53c500_cs.rst
tcm_qla2xxx.rst
ufs.rst
wd719x.rst