Muneendra Kumar 60bee27ba2 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>
2021-01-14 22:55:17 -05:00
..
2020-10-14 15:15:35 -07:00
2020-12-16 13:34:31 -08:00
2020-12-16 13:34:31 -08:00
2020-12-02 12:59:04 -05:00
2020-12-09 12:14:41 -05:00
2020-12-16 13:34:31 -08:00
2020-03-11 23:07:59 -04:00
2020-12-16 13:34:31 -08:00
2020-10-14 15:15:35 -07:00
2021-01-13 00:28:22 -05:00
2020-12-16 13:34:31 -08:00
2021-01-01 12:58:07 -08:00
2021-01-13 00:15:13 -05:00
2017-12-04 20:32:53 -05:00
2020-10-23 16:19:02 -07:00
2018-06-19 22:02:25 -04:00
2019-11-12 22:21:35 -05:00
2020-02-24 14:54:25 -05:00
2020-03-11 23:07:59 -04:00
2020-10-07 21:48:28 -04:00
2019-01-08 21:58:35 -05:00
2020-09-02 22:49:06 -04:00
2020-12-16 13:34:31 -08:00
2020-09-02 22:49:06 -04:00
2020-08-23 17:36:59 -05:00
2020-10-26 18:23:24 -04:00
2018-11-06 21:31:28 -05:00
2020-07-24 22:09:55 -04:00
2020-12-16 13:34:31 -08:00
2020-12-07 20:24:09 -05:00
2020-10-14 15:15:35 -07:00
2020-12-07 20:24:09 -05:00
2020-12-07 20:24:09 -05:00
2020-09-15 17:34:18 -04:00
2020-08-23 17:36:59 -05:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-06-19 23:06:43 -04:00
2018-06-19 22:02:25 -04:00
2020-12-01 14:53:39 -07:00
2020-10-14 15:15:35 -07:00
2019-07-11 15:14:01 -07:00
2020-02-24 15:01:57 -05:00
2020-10-26 18:23:24 -04:00
2020-10-14 15:15:35 -07:00
2019-07-11 15:14:01 -07:00