diff mbox

[2/2] qla2xxx: Fix logo flag for qlt_free_session_done()

Message ID 20180122200420.19516-3-himanshu.madhani@cavium.com (mailing list archive)
State Accepted
Headers show

Commit Message

Madhani, Himanshu Jan. 22, 2018, 8:04 p.m. UTC
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(+)

Comments

Martin K. Petersen Jan. 23, 2018, 1:08 a.m. UTC | #1
Himanshu,

> 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.

Applied to 4.16/scsi-queue. And please run checkpatch before sending.
diff mbox

Patch

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);
 		}