|
|
3c6e85 |
From eb69d415d6d05f0796e5636c69551c3744c36452 Mon Sep 17 00:00:00 2001
|
|
|
3c6e85 |
From: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3c6e85 |
Date: Thu, 1 Aug 2019 15:55:06 -0400
|
|
|
3c6e85 |
Subject: [PATCH 046/124] [scsi] scsi: qla2xxx: Reset the
|
|
|
3c6e85 |
FCF_ASYNC_{SENT|ACTIVE} flags
|
|
|
3c6e85 |
|
|
|
3c6e85 |
Message-id: <20190801155618.12650-47-hmadhani@redhat.com>
|
|
|
3c6e85 |
Patchwork-id: 267823
|
|
|
3c6e85 |
O-Subject: [RHEL 7.8 e-stor PATCH 046/118] scsi: qla2xxx: Reset the FCF_ASYNC_{SENT|ACTIVE} flags
|
|
|
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 |
Driver maintains state machine for processing and completing switch
|
|
|
3c6e85 |
commands. This patch resets FCF_ASYNC_{SENT|ACTIVE} flag to indicate if the
|
|
|
3c6e85 |
previous command is active or sent, in order for next GPSC command to
|
|
|
3c6e85 |
advance the state machine.
|
|
|
3c6e85 |
|
|
|
3c6e85 |
[mkp: commit desc typo]
|
|
|
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 0257eda08e806b82ee1fc90ef73583b6f022845c)
|
|
|
3c6e85 |
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3c6e85 |
Signed-off-by: Jan Stancek <jstancek@redhat.com>
|
|
|
3c6e85 |
---
|
|
|
3c6e85 |
drivers/scsi/qla2xxx/qla_gs.c | 3 +++
|
|
|
3c6e85 |
1 file changed, 3 insertions(+)
|
|
|
3c6e85 |
|
|
|
3c6e85 |
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c
|
|
|
3c6e85 |
index 4864850d0844..34f8f39cdbe2 100644
|
|
|
3c6e85 |
--- a/drivers/scsi/qla2xxx/qla_gs.c
|
|
|
3c6e85 |
+++ b/drivers/scsi/qla2xxx/qla_gs.c
|
|
|
3c6e85 |
@@ -3033,6 +3033,8 @@ static void qla24xx_async_gpsc_sp_done(void *s, int res)
|
|
|
3c6e85 |
"Async done-%s res %x, WWPN %8phC \n",
|
|
|
3c6e85 |
sp->name, res, fcport->port_name);
|
|
|
3c6e85 |
|
|
|
3c6e85 |
+ fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
|
|
|
3c6e85 |
+
|
|
|
3c6e85 |
if (res == QLA_FUNCTION_TIMEOUT)
|
|
|
3c6e85 |
return;
|
|
|
3c6e85 |
|
|
|
3c6e85 |
@@ -4349,6 +4351,7 @@ int qla24xx_async_gnnid(scsi_qla_host_t *vha, fc_port_t *fcport)
|
|
|
3c6e85 |
|
|
|
3c6e85 |
done_free_sp:
|
|
|
3c6e85 |
sp->free(sp);
|
|
|
3c6e85 |
+ fcport->flags &= ~FCF_ASYNC_SENT;
|
|
|
3c6e85 |
done:
|
|
|
3c6e85 |
return rval;
|
|
|
3c6e85 |
}
|
|
|
3c6e85 |
--
|
|
|
3c6e85 |
2.13.6
|
|
|
3c6e85 |
|