scsi: qla2xxx: Reset the logo flag, after target re-login.

After relogin is sucessful, "send_els_logo" flag needs to be
reinitialized. This will allow next re-login to happen successfully.

In target mode, this flag was not reset correctly, causing IO's failure
during reset recovery and port ON/OFF test cases from initiator.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Sawan Chandak <sawan.chandak@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Quinn Tran and committed by
Martin K. Petersen
3515832c b5d15312

+3
+1
drivers/scsi/qla2xxx/qla_init.c
··· 1464 1464 __func__, __LINE__, ea->fcport->port_name); 1465 1465 ea->fcport->chip_reset = vha->hw->base_qpair->chip_reset; 1466 1466 ea->fcport->logout_on_delete = 1; 1467 + ea->fcport->send_els_logo = 0; 1467 1468 qla24xx_post_gpdb_work(vha, ea->fcport, 0); 1468 1469 } 1469 1470 break;
+2
drivers/scsi/qla2xxx/qla_target.c
··· 585 585 sp->fcport->fw_login_state = DSC_LS_PLOGI_COMP; 586 586 sp->fcport->logout_on_delete = 1; 587 587 sp->fcport->plogi_nack_done_deadline = jiffies + HZ; 588 + sp->fcport->send_els_logo = 0; 588 589 break; 589 590 590 591 case SRB_NACK_PRLI: 591 592 sp->fcport->fw_login_state = DSC_LS_PRLI_COMP; 592 593 sp->fcport->deleted = 0; 594 + sp->fcport->send_els_logo = 0; 593 595 594 596 if (!sp->fcport->login_succ && 595 597 !IS_SW_RESV_ADDR(sp->fcport->d_id)) {