Skip to contentSkip to conversation

FAILED: patch "[PATCH] scsi: lpfc: Remove extra atomic_inc on cmd_pending in" failed to apply to 5.15-stable tree

PATCH [email protected] 1 participant 1 message Aug 13, 2022

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 0948a9c5386095baae4012190a6b65aba684a907 Mon Sep 17 00:00:00 2001
From: James Smart <[email protected]>
Date: Fri, 1 Jul 2022 14:14:17 -0700
Subject: [PATCH] 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.

Fixes 33c79741deaf ("scsi: lpfc: vmid: Introduce VMID in I/O path")
Cc <[email protected]> # v5.14+
drivers/scsi/lpfc/lpfc_scsi.c +0 -1
index ba5e4016262e..084c0f9fdc3a 100644
@@ -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);
 
 #ifdef CONFIG_SCSI_LPFC_DEBUG_FS
 	if (unlikely(phba->hdwqstat_on & LPFC_CHECK_SCSI_IO))