diff options
author | Muneendra Kumar <muneendra.kumar@broadcom.com> | 2021-01-06 22:49:05 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-01-15 04:55:17 +0100 |
commit | 60bee27ba2dff82eb921c515e49236abfb6c54ab (patch) | |
tree | 418d0fb8f24377931995af266190119de710078a /include/asm-generic/early_ioremap.h | |
parent | scsi: core: Add a new error code DID_TRANSPORT_MARGINAL in scsi.h (diff) | |
download | linux-60bee27ba2dff82eb921c515e49236abfb6c54ab.tar.xz linux-60bee27ba2dff82eb921c515e49236abfb6c54ab.zip |
scsi: core: No retries on abort success
Add a new optional routine, eh_should_retry_cmd(), in scsi_host_template
that allows the transport to decide if a cmd is retryable. Return true if
the transport is in a state the cmd should be retried on.
Update scmd_eh_abort_handler() and scsi_eh_flush_done_q() to both call
scsi_eh_should_retry_cmd() to check whether the command needs to be
retried.
The above changes were based on a patch by Mike Christie.
Link: https://lore.kernel.org/r/1609969748-17684-3-git-send-email-muneendra.kumar@broadcom.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Muneendra Kumar <muneendra.kumar@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/asm-generic/early_ioremap.h')
0 files changed, 0 insertions, 0 deletions