Commit 29528491 authored by Quinn Tran's avatar Quinn Tran Committed by Martin K. Petersen

scsi: qla2xxx: Fix Rport and session state getting out of sync

This patch fixes rport state and session state getting out of sync.
Signed-off-by: default avatarQuinn Tran <quinn.tran@cavium.com>
Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 625a1cae
...@@ -601,24 +601,18 @@ void qla2x00_async_nack_sp_done(void *s, int res) ...@@ -601,24 +601,18 @@ void qla2x00_async_nack_sp_done(void *s, int res)
vha->fcport_count++; vha->fcport_count++;
if (!IS_IIDMA_CAPABLE(vha->hw) || ql_dbg(ql_dbg_disc, vha, 0x20f3,
!vha->hw->flags.gpsc_supported) { "%s %d %8phC post upd_fcport fcp_cnt %d\n",
ql_dbg(ql_dbg_disc, vha, 0x20f3, __func__, __LINE__,
"%s %d %8phC post upd_fcport fcp_cnt %d\n", sp->fcport->port_name,
__func__, __LINE__, vha->fcport_count);
sp->fcport->port_name, sp->fcport->disc_state = DSC_UPD_FCPORT;
vha->fcport_count); qla24xx_post_upd_fcport_work(vha, sp->fcport);
sp->fcport->disc_state = DSC_UPD_FCPORT; } else {
qla24xx_post_upd_fcport_work(vha, sp->fcport); sp->fcport->login_retry = 0;
} else { sp->fcport->disc_state = DSC_LOGIN_COMPLETE;
ql_dbg(ql_dbg_disc, vha, 0x20f5, sp->fcport->deleted = 0;
"%s %d %8phC post gpsc fcp_cnt %d\n", sp->fcport->logout_on_delete = 1;
__func__, __LINE__,
sp->fcport->port_name,
vha->fcport_count);
qla24xx_post_gpsc_work(vha, sp->fcport);
}
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment