scsi: libfc: Fix up timeout error in fc_fcp_rec_error()
authorHannes Reinecke <hare@suse.de>
Wed, 29 Nov 2023 16:58:31 +0000 (17:58 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Dec 2023 02:32:11 +0000 (21:32 -0500)
We should set the status to FC_TIMED_OUT when a timeout error is passed to
fc_fcp_rec_error().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20231129165832.224100-3-hare@kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_fcp.c

index 3f189cedf6dbf0544515a51a52d0cecbd5117f2c..05be0810b5e31b5fbdcce438192bb72ecc7bd209 100644 (file)
@@ -1676,7 +1676,7 @@ static void fc_fcp_rec_error(struct fc_fcp_pkt *fsp, struct fc_frame *fp)
                if (fsp->recov_retry++ < FC_MAX_RECOV_RETRY)
                        fc_fcp_rec(fsp);
                else
-                       fc_fcp_recovery(fsp, FC_ERROR);
+                       fc_fcp_recovery(fsp, FC_TIMED_OUT);
                break;
        }
        fc_fcp_unlock_pkt(fsp);