scsi: libfc: Map FC_TIMED_OUT to DID_TIME_OUT
authorHannes Reinecke <hare@suse.de>
Wed, 29 Nov 2023 16:58:32 +0000 (17:58 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Dec 2023 02:32:11 +0000 (21:32 -0500)
commitbe40572c22cc734f5836b4faec8a60340dc7ab67
tree221681c908c769154f86929200f39ae235edfba9
parent53122a49f49796beb2c4a1bb702303b66347e29f
scsi: libfc: Map FC_TIMED_OUT to DID_TIME_OUT

When an exchange is completed with FC_TIMED_OUT we should map it to
DID_TIME_OUT to inform the SCSI midlayer that this was a command timeout;
DID_BUS_BUSY implies that the command was never sent which is not the case
here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20231129165832.224100-4-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