summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_priv.h
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2020-10-01 18:35:53 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-10-03 01:53:06 +0300
commit2a242d59d6b908341c0d426bc6e7f8e28871cbd0 (patch)
tree755c992511443213d6fafde9eb4032d82f0471af /drivers/scsi/scsi_priv.h
parent7010645ba7256992818b518163f46bd4cdf8002a (diff)
downloadlinux-2a242d59d6b908341c0d426bc6e7f8e28871cbd0.tar.xz
scsi: core: Add limitless cmd retry support
Add infinite retry support to SCSI midlayer by combining common checks for retries into some helper functions, and then checking for the -1/SCSI_CMD_RETRIES_NO_LIMIT. Link: https://lore.kernel.org/r/1601566554-26752-2-git-send-email-michael.christie@oracle.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r--drivers/scsi/scsi_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index d12ada035961..180636d54982 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -15,6 +15,7 @@ struct scsi_host_template;
struct Scsi_Host;
struct scsi_nl_hdr;
+#define SCSI_CMD_RETRIES_NO_LIMIT -1
/*
* Scsi Error Handler Flags