]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Tue, 19 Sep 2023 10:22:29 +0000 (12:22 +0200)
commitbef6c89a92d025f92b298dd86b20ea99f7b34561
treef22852292960511cede0f514084a3e9925fa295c
parentb439e33a8c93a1fd03b1b48c2201458bbe6c4fe5
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