linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Himanshu Madhani <himanshu.madhani@cavium.com>
To: James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com
Cc: himanshu.madhani@cavium.com, linux-scsi@vger.kernel.org
Subject: [PATCH 2/2] qla2xxx: Fix logo flag for qlt_free_session_done()
Date: Mon, 22 Jan 2018 12:04:20 -0800	[thread overview]
Message-ID: <20180122200420.19516-3-himanshu.madhani@cavium.com> (raw)
In-Reply-To: <20180122200420.19516-1-himanshu.madhani@cavium.com>

From: Himanshu Madhani <hmadhani@redhat.com>

Commit 3515832cc61467bfb87191a30401de1700e9956a fixed the target
re-login after session relogin is complete, but missed out the
qlt_free_session_done() path.

This patch clears send_els_logo flag in qlt_free_session_done() callback.

Fixes: 3515832cc614 ("scsi: qla2xxx: Reset the logo flag, after target re-login.")
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
---
 drivers/scsi/qla2xxx/qla_target.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index dd8edae4c152..14359656591e 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -988,6 +988,7 @@ void qlt_free_session_done(struct work_struct *work)
 
 			logo.id = sess->d_id;
 			logo.cmd_count = 0;
+			sess->send_els_logo = 0;
 			qlt_send_first_logo(vha, &logo);
 		}
 
-- 
2.12.0

  parent reply	other threads:[~2018-01-22 20:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 20:04 [PATCH 0/2] qla2xxx: fixes for the driver Himanshu Madhani
2018-01-22 20:04 ` [PATCH 1/2] qla2xxx: Fix warning reported for req_que_no in qla24xx_async_cmd() Himanshu Madhani
2018-01-23  1:04   ` Martin K. Petersen
2018-01-22 20:04 ` Himanshu Madhani [this message]
2018-01-23  1:08   ` [PATCH 2/2] qla2xxx: Fix logo flag for qlt_free_session_done() 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=20180122200420.19516-3-himanshu.madhani@cavium.com \
    --to=himanshu.madhani@cavium.com \
    --cc=James.Bottomley@HansenPartnership.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).