All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manish Rangankar <mrangankar@marvell.com>
To: <martin.petersen@oracle.com>, <lduncan@suse.com>, <cleech@redhat.com>
Cc: <linux-scsi@vger.kernel.org>, <GR-QLogic-Storage-Upstream@marvell.com>
Subject: [PATCH 6/6] qedi: Fix termination timeouts in session logout
Date: Tue, 7 Apr 2020 23:43:32 -0700	[thread overview]
Message-ID: <20200408064332.19377-7-mrangankar@marvell.com> (raw)
In-Reply-To: <20200408064332.19377-1-mrangankar@marvell.com>

From: Nilesh Javali <njavali@marvell.com>

The destroy conn ramrod timedout while session logouts.
Fix the wait delay for graceful vs abortive termination
as per the FW requirements.

Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
---
 drivers/scsi/qedi/qedi_iscsi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/scsi/qedi/qedi_iscsi.c b/drivers/scsi/qedi/qedi_iscsi.c
index 80c724b..b867a14 100644
--- a/drivers/scsi/qedi/qedi_iscsi.c
+++ b/drivers/scsi/qedi/qedi_iscsi.c
@@ -1065,6 +1065,9 @@ static void qedi_ep_disconnect(struct iscsi_endpoint *ep)
 		break;
 	}
 
+	if (!abrt_conn)
+		wait_delay += qedi->pf_params.iscsi_pf_params.two_msl_timer;
+
 	qedi_ep->state = EP_STATE_DISCONN_START;
 	ret = qedi_ops->destroy_conn(qedi->cdev, qedi_ep->handle, abrt_conn);
 	if (ret) {
-- 
1.8.3.1


  parent reply	other threads:[~2020-04-08  6:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-08  6:43 [PATCH 0/6] Miscellaneous fixes Manish Rangankar
2020-04-08  6:43 ` [PATCH 1/6] qedi: Remove additional char from boot target iqnname Manish Rangankar
2020-04-08  6:43 ` [PATCH 2/6] qedi: Avoid unnecessary endpoint allocation on link down Manish Rangankar
2020-04-08  6:43 ` [PATCH 3/6] qedi: Use correct msix count for fastpath vectors Manish Rangankar
2020-04-08  6:43 ` [PATCH 4/6] qedi: Do not flush offload work if ARP not resolved Manish Rangankar
2020-04-08  6:43 ` [PATCH 5/6] qedi: Add modules param to enable qed iSCSI debug Manish Rangankar
2020-04-08  6:43 ` Manish Rangankar [this message]
2020-04-10 15:24 ` [PATCH 0/6] Miscellaneous fixes Lee Duncan
2020-04-14  1:49 ` Martin K. Petersen

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=20200408064332.19377-7-mrangankar@marvell.com \
    --to=mrangankar@marvell.com \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=cleech@redhat.com \
    --cc=lduncan@suse.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.