From: Quinn Tran <quinn.tran@xxxxxxxxxx> This patch fixes clearing out els_send_logo flag at the time of session deletion. Fixes: 3515832cc614 ("scsi: qla2xxx: Reset the logo flag, after target re-login.") Cc: <stable@xxxxxxxxxxxxxxx> # 4.10+ Signed-off-by: Quinn Tran <quinn.tran@xxxxxxxxxx> Signed-off-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> --- 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 283ff316e4b2..e824cdc77139 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -983,6 +983,7 @@ static void qlt_free_session_done(struct work_struct *work) logo.id = sess->d_id; logo.cmd_count = 0; qlt_send_first_logo(vha, &logo); + sess->send_els_logo = 0; } if (sess->logout_on_delete) { -- 2.12.0