On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > 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) { > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)