Skip to content

Commit 53122a4

Browse files
hreineckemartinkpetersen
authored andcommitted
scsi: libfc: Fix up timeout error in fc_fcp_rec_error()
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>
1 parent b57c4db commit 53122a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/libfc/fc_fcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ static void fc_fcp_rec_error(struct fc_fcp_pkt *fsp, struct fc_frame *fp)
16761676
if (fsp->recov_retry++ < FC_MAX_RECOV_RETRY)
16771677
fc_fcp_rec(fsp);
16781678
else
1679-
fc_fcp_recovery(fsp, FC_ERROR);
1679+
fc_fcp_recovery(fsp, FC_TIMED_OUT);
16801680
break;
16811681
}
16821682
fc_fcp_unlock_pkt(fsp);

0 commit comments

Comments
 (0)