From: Quinn Tran <qutran@xxxxxxxxxxx> The scenario is user loaded driver but has not start authentication app. All sessions to secure device will exhaust all login attempt, fail and in stay in delete state. Some time later, app started. Driver will: replenish the login retry count, trigger delete to prepare for secure login, after deletion, relogin is triggered. For the session that is already deleted, the delete trigger is a no-op. If none of the session trigger the relogin needed, then there's no movement. This patch add a re-login trigger to relogin. Fixes: 7ebb336e45ef ("scsi: qla2xxx: edif: Add start + stop bsgs") Signed-off-by: Quinn Tran <qutran@xxxxxxxxxxx> Signed-off-by: Nilesh Javali <njavali@xxxxxxxxxxx> --- drivers/scsi/qla2xxx/qla_edif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qla2xxx/qla_edif.c b/drivers/scsi/qla2xxx/qla_edif.c index a4e444ea0363..dd3593333d7b 100644 --- a/drivers/scsi/qla2xxx/qla_edif.c +++ b/drivers/scsi/qla2xxx/qla_edif.c @@ -567,6 +567,7 @@ qla_edif_app_start(scsi_qla_host_t *vha, struct bsg_job *bsg_job) qlt_schedule_sess_for_deletion(fcport); qla_edif_sa_ctl_init(vha, fcport); } + set_bit(RELOGIN_NEEDED, &vha->dpc_flags); } if (vha->pur_cinfo.enode_flags != ENODE_ACTIVE) { -- 2.19.0.rc0