qla2x00t-32gbit: Fix stuck session

Session was stuck due to explicit logout to target timing out.  The target
was in an unresponsive state. This timeout induced an error to the GNL
command from moving forward.

Link: https://lore.kernel.org/r/20210329085229.4367-4-njavali@marvell.com
Tested-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
[ commit c358a3d92b32be89ea1c44fe75721448c0a0fec1 upstream ]



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9403 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-05-15 22:29:59 +00:00
parent 19aa46c0db
commit 9ef0447910
2 changed files with 7 additions and 1 deletions

View File

@@ -718,6 +718,7 @@ static void qla24xx_handle_gnl_done_event(scsi_qla_host_t *vha,
ql_dbg(ql_dbg_disc, vha, 0x20e0,
"%s %8phC login gen changed\n",
__func__, fcport->port_name);
set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
return;
}

View File

@@ -1044,7 +1044,12 @@ void qlt_free_session_done(struct work_struct *work)
}
msleep(100);
cnt++;
if (cnt > 200)
/*
* Driver timeout is set to 22 Sec, update count value to loop
* long enough for log-out to complete before advancing. Otherwise,
* straddling logout can interfere with re-login attempt.
*/
if (cnt > 230)
break;
}