Skip to content

Commit

Permalink
qla2x00t-32gbit: fix stuck session in gpdb
Browse files Browse the repository at this point in the history
Fix stuck sessions in get port database. When a thread is in the process
of re-establishing a session, a flag is set to prevent multiple threads /
triggers from doing the same task. This flag was left on, where any attempt to
relogin was locked out. Clear this flag, if the attempt has failed.

Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
  • Loading branch information
lnocturno committed Feb 4, 2022
1 parent 061e945 commit 5cf4d77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qla2x00t-32gbit/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,9 +1332,9 @@ int qla24xx_async_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt)
if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT) ||
fcport->loop_id == FC_NO_LOOP_ID) {
ql_log(ql_log_warn, vha, 0xffff,
"%s: %8phC - not sending command.\n",
__func__, fcport->port_name);
return rval;
"%s: %8phC online %d flags %x - not sending command.\n",
__func__, fcport->port_name, vha->flags.online, fcport->flags);
goto done;
}

sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
Expand Down

0 comments on commit 5cf4d77

Please sign in to comment.