OpenCloudOS-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 scsi: docs: include SCSI Transport SRP diagram at the doc body 2020-03-11 23:07:57 -04:00
53c700.rst scsi: docs: convert 53c700.txt to ReST 2020-03-11 23:07:58 -04:00
BusLogic.rst Buslogic: remove ISA support 2021-04-06 09:28:17 -06:00
ChangeLog.arcmsr
ChangeLog.ips
ChangeLog.lpfc scsi: docs: Fix a typo 2022-09-01 00:33:34 -04:00
ChangeLog.megaraid Documentation: megaraid: fix spelling "consistend" => "consistent" 2021-03-25 11:49:40 -06:00
ChangeLog.megaraid_sas scripts/spelling.txt: add "varible" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
ChangeLog.ncr53c8xx Fix common misspellings 2011-03-31 11:26:23 -03:00
ChangeLog.sym53c8xx Fix common misspellings 2011-03-31 11:26:23 -03:00
ChangeLog.sym53c8xx_2
FlashPoint.rst scsi: docs: convert FlashPoint.txt to ReST 2020-03-11 23:07:59 -04:00
LICENSE.FlashPoint
NinjaSCSI.rst scsi: docs: convert NinjaSCSI.txt to ReST 2020-03-11 23:08:01 -04:00
aacraid.rst scsi: docs: convert aacraid.txt to ReST 2020-03-11 23:07:58 -04:00
advansys.rst scsi: advansys: docs: Eliminate duplicated word 2020-07-08 01:32:11 -04:00
aha152x.rst scsi: docs: convert aha152x.txt to ReST 2020-03-11 23:07:58 -04:00
aic7xxx.rst scsi: docs: convert aic7xxx.txt to ReST 2020-03-11 23:07:58 -04:00
aic79xx.rst scsi: docs: convert aic79xx.txt to ReST 2020-03-11 23:07:58 -04:00
arcmsr_spec.rst scsi: docs: convert arcmsr_spec.txt to ReST 2020-03-11 23:08:03 -04:00
bfa.rst scsi: docs: convert bfa.txt to ReST 2020-03-11 23:07:58 -04:00
bnx2fc.rst scsi: docs: convert bnx2fc.txt to ReST 2020-03-11 23:07:59 -04:00
cxgb3i.rst scsi: docs: convert cxgb3i.txt to ReST 2020-03-11 23:07:59 -04:00
dc395x.rst scsi: docs: convert dc395x.txt to ReST 2020-03-11 23:07:59 -04:00
dpti.rst scsi: docs: convert dpti.txt to ReST 2020-03-11 23:07:59 -04:00
g_NCR5380.rst scsi: docs: convert g_NCR5380.txt to ReST 2020-03-11 23:08:00 -04:00
hpsa.rst scsi: docs: convert hpsa.txt to ReST 2020-03-11 23:08:00 -04:00
hptiop.rst scsi: docs: convert hptiop.txt to ReST 2020-03-11 23:08:00 -04:00
index.rst scsi: docs: convert arcmsr_spec.txt to ReST 2020-03-11 23:08:03 -04:00
libsas.rst scsi: libsas: Delete lldd_clear_aca callback 2022-02-19 15:59:34 -05:00
link_power_management_policy.rst scsi: docs: convert link_power_management_policy.txt to ReST 2020-03-11 23:08:00 -04:00
lpfc.rst scsi: docs: convert lpfc.txt to ReST 2020-03-11 23:08:00 -04:00
megaraid.rst scsi: docs: convert megaraid.txt to ReST 2020-03-11 23:08:00 -04:00
ncr53c8xx.rst scsi: docs: convert ncr53c8xx.txt to ReST 2020-03-11 23:08:01 -04:00
ppa.rst scsi: docs: convert ppa.txt to ReST 2020-03-11 23:08:01 -04:00
qlogicfas.rst scsi: docs: convert qlogicfas.txt to ReST 2020-03-11 23:08:01 -04:00
scsi-changer.rst scsi: docs: convert scsi-changer.txt to ReST 2020-03-11 23:08:01 -04:00
scsi-generic.rst scsi: docs: convert scsi-generic.txt to ReST 2020-03-11 23:08:02 -04:00
scsi-parameters.rst SCSI misc on 20210219 2021-02-22 10:24:58 -08:00
scsi.rst scsi: docs: convert scsi.txt to ReST 2020-03-11 23:08:02 -04:00
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: docs: convert scsi_fc_transport.txt to ReST 2020-03-11 23:08:01 -04:00
scsi_mid_low_api.rst scsi: core: Remove reserved request time-out handling 2022-07-06 06:33:53 -06:00
sd-parameters.rst scsi: docs: convert sd-parameters.txt to ReST 2020-03-11 23:08:02 -04:00
smartpqi.rst scsi: smartpqi: Update documentation 2020-09-02 22:49:06 -04:00
st.rst scsi: docs: convert st.txt to ReST 2020-03-11 23:08:02 -04:00
sym53c8xx_2.rst scsi: docs: convert sym53c8xx_2.txt to ReST 2020-03-11 23:08:03 -04:00
sym53c500_cs.rst scsi: docs: convert sym53c500_cs.txt to ReST 2020-03-11 23:08:03 -04:00
tcm_qla2xxx.rst scsi: docs: convert tcm_qla2xxx.txt to ReST 2020-03-11 23:08:03 -04:00
ufs.rst scsi: ufs: core: Read device property for ref clock 2022-07-18 23:04:12 -04:00
wd719x.rst scsi: docs: convert wd719x.txt to ReST 2020-03-11 23:08:03 -04:00