summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHimanshu Madhani <hmadhani@redhat.com>2018-01-22 12:04:20 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-21 12:06:45 +0100
commit91cb90636e038c8403ac581f3cc285efd1ba5ec5 (patch)
tree0bde6ef2eb81ed6cf06cbe3be9a0440a720c95a5
parent31de69d5c9b83c066cf7cf0774912e01fc4ef530 (diff)
downloadlinux-stable-91cb90636e038c8403ac581f3cc285efd1ba5ec5.tar.gz
linux-stable-91cb90636e038c8403ac581f3cc285efd1ba5ec5.tar.bz2
linux-stable-91cb90636e038c8403ac581f3cc285efd1ba5ec5.zip
scsi: qla2xxx: Fix logo flag for qlt_free_session_done()
commit a2390348c19d0819d525d375414a7cfdacb51a68 upstream. Commit 3515832cc614 ("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: 3515832cc614 ("scsi: qla2xxx: Reset the logo flag, after target re-login.") Signed-off-by: Himanshu Madhani <hmadhani@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/scsi/qla2xxx/qla_target.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index 040a76011ffa..d6fe08de59a0 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -971,6 +971,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);
}