Merge tag 'm68knommu-for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / include / scsi / scsi_host.h
index 701f178..e30fd96 100644 (file)
@@ -314,6 +314,12 @@ struct scsi_host_template {
         * Status: OPTIONAL
         */
        enum blk_eh_timer_return (*eh_timed_out)(struct scsi_cmnd *);
+       /*
+        * Optional routine 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.
+        */
+       bool (*eh_should_retry_cmd)(struct scsi_cmnd *scmd);
 
        /* This is an optional routine that allows transport to initiate
         * LLD adapter or firmware reset using sysfs attribute.