scsi: lpfc: Remove extra atomic_inc on cmd_pending in queuecommand after VMID
authorJames Smart <jsmart2021@gmail.com>
Fri, 1 Jul 2022 21:14:17 +0000 (14:14 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 21:21:43 +0000 (17:21 -0400)
commit0948a9c5386095baae4012190a6b65aba684a907
tree651d0a428a9896c06753f07ca12b11e442b2f5d1
parent35251b4d79db4ca2efeb63d6bc8fc463aa867156
scsi: lpfc: Remove extra atomic_inc on cmd_pending in queuecommand after VMID

VMID introduced an extra increment of cmd_pending, causing double-counting
of the I/O. The normal increment ios performed in lpfc_get_scsi_buf.

Link: https://lore.kernel.org/r/20220701211425.2708-5-jsmart2021@gmail.com
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>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c