Message ID | 20190410052916.22129-2-hmadhani@marvell.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | qla2xxx: Driver fixes for 5.1-rc | expand |
On Tue, 2019-04-09 at 22:29 -0700, Himanshu Madhani wrote: > From: Quinn Tran <qtran@marvell.com> > > This patch fixes issue reported by some of the customers, > who discvored that after some event in SAN if the devices ^^^^^^^^^ discovered?
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 582d1663f971..697eee1d8847 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -980,6 +980,8 @@ void qlt_free_session_done(struct work_struct *work) sess->send_els_logo); if (!IS_SW_RESV_ADDR(sess->d_id)) { + qla2x00_mark_device_lost(vha, sess, 0, 0); + if (sess->send_els_logo) { qlt_port_logo_t logo; @@ -1160,8 +1162,6 @@ void qlt_unreg_sess(struct fc_port *sess) if (sess->se_sess) vha->hw->tgt.tgt_ops->clear_nacl_from_fcport_map(sess); - qla2x00_mark_device_lost(vha, sess, 0, 0); - sess->deleted = QLA_SESS_DELETION_IN_PROGRESS; sess->disc_state = DSC_DELETE_PEND; sess->last_rscn_gen = sess->rscn_gen;