All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 00/22] Allow scsi_execute users to control retries
@ 2022-09-22 10:06 Mike Christie
  2022-09-22 10:06 ` [PATCH RFC 01/22] scsi: Add helper to prep sense during error handling Mike Christie
                   ` (21 more replies)
  0 siblings, 22 replies; 31+ messages in thread
From: Mike Christie @ 2022-09-22 10:06 UTC (permalink / raw)
  To: mwilck, hch, martin.petersen, linux-scsi, james.bottomley

The following patches made over a combo of linus's tree nd Martin's
6.1-queue tree (the are both missing patches) allow scsi_execute* users
to control exactly which errors are retried.

The patches allow scsi_execute users to pass in an array of failures
which they want retried and also specify how many times they want them
retried. If we hit an error that the user did not specify then we drop
down the the default behavior. This allows us to remove all the retry code
from the callers except for a couple cases where the caller:

1. wants to sleep between retries or had strict timings (sd_spinup_disk
or ufs).
2. needed to set some internal state between retries (scsi_test_unit_ready)
3. retried based on the error code and it's internal state (alua rtpg).

These patches have only been lightly tested. I'm more looking for an
ACK on the idea because this is different than what I mentioned on the
list a couple weeks ago.

TODO:
1. There is still the scsi_cmnd->allowed/retries. I think I could just
add a default scsi_failure struct on the scsi_cmnd and make the code
more common.



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

end of thread, other threads:[~2022-09-22 18:19 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 10:06 [PATCH RFC 00/22] Allow scsi_execute users to control retries Mike Christie
2022-09-22 10:06 ` [PATCH RFC 01/22] scsi: Add helper to prep sense during error handling Mike Christie
2022-09-22 16:57   ` Bart Van Assche
2022-09-22 17:36     ` michael.christie
2022-09-22 18:19       ` Bart Van Assche
2022-09-22 10:06 ` [PATCH RFC 02/22] scsi: Allow passthrough to override what errors to retry Mike Christie
2022-09-22 16:59   ` Bart Van Assche
2022-09-22 17:28     ` michael.christie
2022-09-22 10:06 ` [PATCH RFC 03/22] scsi: Take an array of failures for passthrough Mike Christie
2022-09-22 17:02   ` Bart Van Assche
2022-09-22 10:06 ` [PATCH RFC 04/22] scsi: Have scsi-ml retry scsi_probe_lun errors Mike Christie
2022-09-22 17:03   ` Bart Van Assche
2022-09-22 17:30     ` michael.christie
2022-09-22 10:06 ` [PATCH RFC 05/22] scsi: retry INQUIRY after timeout Mike Christie
2022-09-22 10:06 ` [PATCH RFC 06/22] scsi: Have scsi-ml retry read_capacity_16 errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 07/22] scsi: Have scsi-ml retry sd_spinup_disk errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 08/22] scsi: cxlflash: Have scsi-ml retry read_cap16 errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 09/22] scsi: hp_sw: Have scsi-ml retry hp_sw_start_stop errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 10/22] scsi: Allow passthrough to request infinite retries Mike Christie
2022-09-22 10:06 ` [PATCH RFC 11/22] scsi: hp_sw: Have scsi-ml retry hp_sw_tur errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 12/22] scsi: rdac: Have scsi-ml retry send_mode_select errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 13/22] scsi: spi: Have scsi-ml retry spi_execute errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 14/22] scsi: sd: Have scsi-ml retry sd_sync_cache errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 15/22] scsi: ch: Have scsi-ml retry ch_do_scsi errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 16/22] scsi: Have scsi-ml retry scsi_mode_sense errors Mike Christie
2022-09-22 10:06 ` [PATCH RFC 17/22] scsi: Have scsi-ml retry scsi_report_lun_scan errors Mike Christie
2022-09-22 10:07 ` [PATCH RFC 18/22] scsi: sd: Have sd_pr_command retry UAs Mike Christie
2022-09-22 10:07 ` [PATCH RFC 19/22] scsi: sd: Have scsi-ml retry read_capacity_10 errors Mike Christie
2022-09-22 10:07 ` [PATCH RFC 20/22] scsi: ses: Have scsi-ml retry ses_recv_diag errors Mike Christie
2022-09-22 10:07 ` [PATCH RFC 21/22] scsi: ses: Have scsi-ml retry ses_send_diag errors Mike Christie
2022-09-22 10:07 ` [PATCH RFC 22/22] scsi: sr: Have scsi-ml retry get_sectorsize errors Mike Christie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.