Blame SOURCES/0009-scsi-scsi-qla2xxx-allow-session-delete-to-finish-bef.patch

3c6e85
From 11613e70fb041a40c8b0738ba81c774320142886 Mon Sep 17 00:00:00 2001
3c6e85
From: Himanshu Madhani <hmadhani@redhat.com>
3c6e85
Date: Thu, 1 Aug 2019 15:54:29 -0400
3c6e85
Subject: [PATCH 009/124] [scsi] scsi: qla2xxx: allow session delete to finish
3c6e85
 before create
3c6e85
3c6e85
Message-id: <20190801155618.12650-10-hmadhani@redhat.com>
3c6e85
Patchwork-id: 267784
3c6e85
O-Subject: [RHEL 7.8 e-stor PATCH 009/118] scsi: qla2xxx: allow session delete to finish before create.
3c6e85
Bugzilla: 1729270
3c6e85
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
3c6e85
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
3c6e85
3c6e85
From: Quinn Tran <quinn.tran@cavium.com>
3c6e85
3c6e85
Bugzilla 1729270
3c6e85
3c6e85
This patch flushes del_work and free_work while sending NACK response for
3c6e85
PRLI
3c6e85
3c6e85
Signed-off-by: Quinn Tran <quinn.tran@cavium.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 1021f0bc2f3d6ac80a33aac0059dce8fd1622235)
3c6e85
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
3c6e85
Signed-off-by: Jan Stancek <jstancek@redhat.com>
3c6e85
---
3c6e85
 drivers/scsi/qla2xxx/qla_target.c | 3 +++
3c6e85
 1 file changed, 3 insertions(+)
3c6e85
3c6e85
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
3c6e85
index 7faa33e21543..116596eb7c2c 100644
3c6e85
--- a/drivers/scsi/qla2xxx/qla_target.c
3c6e85
+++ b/drivers/scsi/qla2xxx/qla_target.c
3c6e85
@@ -677,6 +677,9 @@ void qla24xx_do_nack_work(struct scsi_qla_host *vha, struct qla_work_evt *e)
3c6e85
 
3c6e85
 	switch (e->u.nack.type) {
3c6e85
 	case SRB_NACK_PRLI:
3c6e85
+		t = e->u.nack.fcport;
3c6e85
+		flush_work(&t->del_work);
3c6e85
+		flush_work(&t->free_work);
3c6e85
 		mutex_lock(&vha->vha_tgt.tgt_mutex);
3c6e85
 		t = qlt_create_sess(vha, e->u.nack.fcport, 0);
3c6e85
 		mutex_unlock(&vha->vha_tgt.tgt_mutex);
3c6e85
-- 
3c6e85
2.13.6
3c6e85