diff mbox series

[04/12] lpfc: Remove extra atomic_inc on cmd_pending in queuecommand after VMID

Message ID 20220701211425.2708-5-jsmart2021@gmail.com
State New
Headers show
Series lpfc: Update lpfc to revision | expand

Commit Message

James Smart July 1, 2022, 9:14 p.m. UTC
VMID introduced an extra increment of cmd_pending, causing
double-counting of the I/O. The normal increment ios performed in

Fixes: 33c79741deaf ("scsi: lpfc: vmid: Introduce VMID in I/O path")
Cc: <stable@vger.kernel.org> # v5.14+
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
 drivers/scsi/lpfc/lpfc_scsi.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series


diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index ba5e4016262e..084c0f9fdc3a 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -5456,7 +5456,6 @@  lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
 				cur_iocbq->cmd_flag |= LPFC_IO_VMID;
-	atomic_inc(&ndlp->cmd_pending);
 	if (unlikely(phba->hdwqstat_on & LPFC_CHECK_SCSI_IO))