Blame SOURCES/0045-scsi-scsi-qla2xxx-Set-the-qpair-in-SRB-to-NULL-when-.patch

3c6e85
From cf462e18838a8bf5cd1d450cc348d3252ca00b5c Mon Sep 17 00:00:00 2001
3c6e85
From: Himanshu Madhani <hmadhani@redhat.com>
3c6e85
Date: Thu, 1 Aug 2019 15:55:05 -0400
3c6e85
Subject: [PATCH 045/124] [scsi] scsi: qla2xxx: Set the qpair in SRB to NULL
3c6e85
 when SRB is released
3c6e85
3c6e85
Message-id: <20190801155618.12650-46-hmadhani@redhat.com>
3c6e85
Patchwork-id: 267822
3c6e85
O-Subject: [RHEL 7.8 e-stor PATCH 045/118] scsi: qla2xxx: Set the qpair in SRB to NULL when SRB is released
3c6e85
Bugzilla: 1729270
3c6e85
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
3c6e85
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
3c6e85
3c6e85
From: Giridhar Malavali <gmalavali@marvell.com>
3c6e85
3c6e85
Bugzilla 1729270
3c6e85
3c6e85
This patch sets QPair pointer to NULL to prevent abort command racing ahead
3c6e85
of normal command completion handling during scsi_done call.
3c6e85
3c6e85
Signed-off-by: Giridhar Malavali <gmalavali@marvell.com>
3c6e85
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
3c6e85
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
3c6e85
(cherry picked from commit ae6ccb0f8153fe9e3b9287a74aa9742ea212e89c)
3c6e85
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
3c6e85
Signed-off-by: Jan Stancek <jstancek@redhat.com>
3c6e85
---
3c6e85
 drivers/scsi/qla2xxx/qla_inline.h | 1 +
3c6e85
 1 file changed, 1 insertion(+)
3c6e85
3c6e85
diff --git a/drivers/scsi/qla2xxx/qla_inline.h b/drivers/scsi/qla2xxx/qla_inline.h
3c6e85
index e396dd14ab5f..98f544fe8788 100644
3c6e85
--- a/drivers/scsi/qla2xxx/qla_inline.h
3c6e85
+++ b/drivers/scsi/qla2xxx/qla_inline.h
3c6e85
@@ -240,6 +240,7 @@ done:
3c6e85
 static inline void
3c6e85
 qla2xxx_rel_qpair_sp(struct qla_qpair *qpair, srb_t *sp)
3c6e85
 {
3c6e85
+	sp->qpair = NULL;
3c6e85
 	mempool_free(sp, qpair->srb_mempool);
3c6e85
 	QLA_QPAIR_MARK_NOT_BUSY(qpair);
3c6e85
 }
3c6e85
-- 
3c6e85
2.13.6
3c6e85