All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nilesh Javali <njavali@marvell.com>
To: <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>, <GR-QLogic-Storage-Upstream@marvell.com>
Subject: [PATCH 03/11] qla2xxx: fix stuck session
Date: Mon, 22 Mar 2021 21:42:49 -0700	[thread overview]
Message-ID: <20210323044257.26664-4-njavali@marvell.com> (raw)
In-Reply-To: <20210323044257.26664-1-njavali@marvell.com>

From: Quinn Tran <qutran@marvell.com>

Session was stuck due to explicit logout to target was timed out.
The target was in an unresponsive state. This timeout induced an error
to the GNL command from moving forward.

Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
---
 drivers/scsi/qla2xxx/qla_init.c   | 1 +
 drivers/scsi/qla2xxx/qla_target.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index af237c485389..f6dc8166e7ba 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -718,6 +718,7 @@ static void qla24xx_handle_gnl_done_event(scsi_qla_host_t *vha,
 		ql_dbg(ql_dbg_disc, vha, 0x20e0,
 		    "%s %8phC login gen changed\n",
 		    __func__, fcport->port_name);
+		set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
 		return;
 	}
 
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index c48daf52725d..fa8c4dae8dce 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -1029,7 +1029,7 @@ void qlt_free_session_done(struct work_struct *work)
 			}
 			msleep(100);
 			cnt++;
-			if (cnt > 200)
+			if (cnt > 230)
 				break;
 		}
 
-- 
2.19.0.rc0


  parent reply	other threads:[~2021-03-23  4:45 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23  4:42 [PATCH 00/11] qla2xxx driver bug fixes Nilesh Javali
2021-03-23  4:42 ` [PATCH 01/11] qla2xxx: Fix IOPS drop seen in some adapters Nilesh Javali
2021-03-24 15:46   ` Himanshu Madhani
2021-03-26  0:53     ` Arun Easi
2021-03-26 13:38       ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 02/11] qla2xxx: Add H:C:T info in the log message for fc ports Nilesh Javali
2021-03-24 15:48   ` Himanshu Madhani
2021-03-23  4:42 ` Nilesh Javali [this message]
2021-03-23 16:31   ` [PATCH 03/11] qla2xxx: fix stuck session Bart Van Assche
2021-03-24 15:53     ` Himanshu Madhani
2021-03-26 17:46       ` Quinn Tran
2021-03-26 17:53         ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 04/11] qla2xxx: consolidate zio threshold setting for both fcp & nvme Nilesh Javali
2021-03-24 15:55   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 05/11] qla2xxx: Fix use after free in bsg Nilesh Javali
2021-03-24 15:57   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 06/11] qla2xxx: Fix crash in qla2xxx_mqueuecommand Nilesh Javali
2021-03-24 15:57   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 07/11] qla2xxx: fix RISC RESET completion polling Nilesh Javali
2021-03-24 16:03   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 08/11] qla2xxx: fix crash in PCIe error handling Nilesh Javali
2021-03-24 16:21   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 09/11] qla2xxx: fix mailbox recovery during PCIe error Nilesh Javali
2021-03-24 16:23   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 10/11] qla2xxx: include AER debug mask to default Nilesh Javali
2021-03-24 16:24   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 11/11] qla2xxx: Update version to 10.02.00.106-k Nilesh Javali
2021-03-24 16:24   ` Himanshu Madhani
2021-03-24 20:55 ` [PATCH 00/11] qla2xxx driver bug fixes Laurence Oberman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210323044257.26664-4-njavali@marvell.com \
    --to=njavali@marvell.com \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.