]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:21 +0000 (14:24 +0200)
commitcb1f9515e7e88836a509c318add7783688eab14b
tree3e2412b35d097f342ac5940e3dcb1f41b9adfe64
parent037888f4d7a12846450433ebdf3eb76891c55f3f
scsi: lpfc: Remove extra atomic_inc on cmd_pending in queuecommand after VMID

[ Upstream commit ed5fda986d2071369b88dfeff9ac34047a437a7e ]

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: 4a7c4d478621 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_scsi.c