diff mbox series

[2/3] libfc: Fixup timeout error in fc_fcp_rec_error()

Message ID 20231129165832.224100-3-hare@kernel.org (mailing list archive)
State Accepted
Headers show
Series libfc: fixup command abort handling | expand

Commit Message

Hannes Reinecke Nov. 29, 2023, 4:58 p.m. UTC
From: Hannes Reinecke <hare@suse.de>

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>
---
 drivers/scsi/libfc/fc_fcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christoph Hellwig Dec. 4, 2023, 8:04 a.m. UTC | #1
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c
index 3f189cedf6db..05be0810b5e3 100644
--- a/drivers/scsi/libfc/fc_fcp.c
+++ b/drivers/scsi/libfc/fc_fcp.c
@@ -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);