OSDN Git Service

scsi: lpfc: Fix dif and first burst use in write commands
authorJames Smart <jsmart2021@gmail.com>
Fri, 30 Nov 2018 00:09:40 +0000 (16:09 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:19:48 +0000 (09:19 +0100)
commitee6d2bedb400ffc904ddddc06270167ec43c6565
treece3cada1a03e7c1947268d306ef2fc2f7ed7a208
parent20feb73330490eac584551824369946b82ee4c59
scsi: lpfc: Fix dif and first burst use in write commands

[ Upstream commit 7c4042a4d0b7532cfbc90478fd3084b2dab5849e ]

When dif and first burst is used in a write command wqe, the driver was not
properly setting fields in the io command request. This resulted in no dif
bytes being sent and invalid xfer_rdy's, resulting in the io being aborted
by the hardware.

Correct the wqe initializaton when both dif and first burst are used.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@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