Patch "scsi: qla2xxx: Fix imbalance vha->vref_count" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: qla2xxx: Fix imbalance vha->vref_count

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-qla2xxx-fix-imbalance-vha-vref_count.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 63fa7f2644b4b48e1913af33092c044bf48e9321 Mon Sep 17 00:00:00 2001
From: Quinn Tran <qutran@xxxxxxxxxxx>
Date: Tue, 12 Jul 2022 22:20:41 -0700
Subject: scsi: qla2xxx: Fix imbalance vha->vref_count

From: Quinn Tran <qutran@xxxxxxxxxxx>

commit 63fa7f2644b4b48e1913af33092c044bf48e9321 upstream.

vref_count took an extra decrement in the task management path.  Add an
extra ref count to compensate the imbalance.

Link: https://lore.kernel.org/r/20220713052045.10683-7-njavali@xxxxxxxxxxx
Cc: stable@xxxxxxxxxxxxxxx
Reviewed-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx>
Signed-off-by: Quinn Tran <qutran@xxxxxxxxxxx>
Signed-off-by: Nilesh Javali <njavali@xxxxxxxxxxx>
Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/scsi/qla2xxx/qla_init.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -161,6 +161,7 @@ int qla24xx_async_abort_cmd(srb_t *cmd_s
 	struct srb_iocb *abt_iocb;
 	srb_t *sp;
 	int rval = QLA_FUNCTION_FAILED;
+	uint8_t bail;
 
 	/* ref: INIT for ABTS command */
 	sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport,
@@ -168,6 +169,7 @@ int qla24xx_async_abort_cmd(srb_t *cmd_s
 	if (!sp)
 		return QLA_MEMORY_ALLOC_FAILED;
 
+	QLA_VHA_MARK_BUSY(vha, bail);
 	abt_iocb = &sp->u.iocb_cmd;
 	sp->type = SRB_ABT_CMD;
 	sp->name = "abort";
@@ -2009,12 +2011,14 @@ qla2x00_async_tm_cmd(fc_port_t *fcport,
 	struct srb_iocb *tm_iocb;
 	srb_t *sp;
 	int rval = QLA_FUNCTION_FAILED;
+	uint8_t bail;
 
 	/* ref: INIT */
 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
 	if (!sp)
 		goto done;
 
+	QLA_VHA_MARK_BUSY(vha, bail);
 	sp->type = SRB_TM_CMD;
 	sp->name = "tmf";
 	qla2x00_init_async_sp(sp, qla2x00_get_async_timeout(vha),


Patches currently in stable-queue which might be from qutran@xxxxxxxxxxx are

queue-5.15/scsi-qla2xxx-edif-synchronize-npiv-deletion-with-aut.patch
queue-5.15/scsi-qla2xxx-fix-erroneous-mailbox-timeout-after-pci-error-injection.patch
queue-5.15/scsi-qla2xxx-edif-fix-inconsistent-check-of-db_flags.patch
queue-5.15/scsi-qla2xxx-edif-reduce-connection-thrash.patch
queue-5.15/scsi-qla2xxx-edif-fix-no-logout-on-delete-for-n2n.patch
queue-5.15/scsi-qla2xxx-edif-reduce-disruption-due-to-multiple-.patch
queue-5.15/scsi-qla2xxx-edif-reduce-initiator-initiator-thrashi.patch
queue-5.15/scsi-qla2xxx-edif-tear-down-session-if-keys-have-bee.patch
queue-5.15/scsi-qla2xxx-edif-fix-no-login-after-app-start.patch
queue-5.15/scsi-qla2xxx-edif-fix-n2n-login-retry-for-secure-dev.patch
queue-5.15/scsi-qla2xxx-edif-fix-potential-stuck-session-in-sa-.patch
queue-5.15/scsi-qla2xxx-edif-fix-session-thrash.patch
queue-5.15/scsi-qla2xxx-edif-fix-n2n-discovery-issue-with-secur.patch
queue-5.15/scsi-qla2xxx-zero-undefined-mailbox-in-registers.patch
queue-5.15/scsi-qla2xxx-fix-imbalance-vha-vref_count.patch
queue-5.15/scsi-qla2xxx-wind-down-adapter-after-pcie-error.patch
queue-5.15/scsi-qla2xxx-edif-send-logo-for-unexpected-ike-messa.patch
queue-5.15/scsi-qla2xxx-edif-add-retry-for-els-passthrough.patch
queue-5.15/scsi-qla2xxx-turn-off-multi-queue-for-8g-adapters.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux