From 7b8dd1bc28a89e2108c2a8c71b3b8649941cbfa6 Mon Sep 17 00:00:00 2001 From: Himanshu Madhani Date: Mon, 22 Jan 2018 12:04:20 -0800 Subject: [PATCH] scsi: qla2xxx: Fix logo flag for qlt_free_session_done() Commit 73704dfa1f64 ("scsi: qla2xxx: Reset the logo flag, after target re-login.")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. [mkp: checkpatch] Fixes: 73704dfa1f64 ("scsi: qla2xxx: Reset the logo flag, after target re-login.") Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen --- 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 cc80e57675e4f..fc89af8fe2569 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -988,6 +988,7 @@ static 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.39.5