diff options
author | Muneendra Kumar <muneendra.kumar@broadcom.com> | 2021-01-07 03:19:05 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-01-14 22:55:17 -0500 |
commit | 60bee27ba2dff82eb921c515e49236abfb6c54ab (patch) | |
tree | 418d0fb8f24377931995af266190119de710078a /drivers/scsi/scsi_transport_fc.c | |
parent | 962c8dcdd5fa680e2bd68320d54e797b6d8c17fe (diff) | |
download | linux-60bee27ba2dff82eb921c515e49236abfb6c54ab.tar.gz linux-60bee27ba2dff82eb921c515e49236abfb6c54ab.tar.bz2 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 'drivers/scsi/scsi_transport_fc.c')
0 files changed, 0 insertions, 0 deletions