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