scsi: core: Add limitless cmd retry support
authorMike Christie <michael.christie@oracle.com>
Thu, 1 Oct 2020 15:35:53 +0000 (10:35 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Oct 2020 22:53:06 +0000 (18:53 -0400)
commit2a242d59d6b908341c0d426bc6e7f8e28871cbd0
tree755c992511443213d6fafde9eb4032d82f0471af
parent7010645ba7256992818b518163f46bd4cdf8002a
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>
drivers/scsi/scsi_error.c
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_priv.h