]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Remove reftag check in DIF paths
authorJustin Tee <justin.tee@broadcom.com>
Thu, 3 Aug 2023 21:19:32 +0000 (14:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:24 +0000 (09:42 +0200)
commit24d9cc933597597f60af419d5d55605ac6c446ae
treec5d0fb95c25623239f201d31187b4331dce809b4
parentc70b9758eebe2de7fd7ffdc6083b3149fc1f195c
scsi: lpfc: Remove reftag check in DIF paths

[ Upstream commit 8eebf0e84f0614cebc7347f7bbccba4056d77d42 ]

When preparing protection DIF I/O for DMA, the driver obtains reference
tags from scsi_prot_ref_tag().  Previously, there was a wrong assumption
that an all 0xffffffff value meant error and thus the driver failed the
I/O.  This patch removes the evaluation code and accepts whatever the upper
layer returns.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230803211932.155745-1-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_scsi.c