Skip to content

Commit 3515832

Browse files
Quinn Tranmartinkpetersen
authored andcommitted
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 <[email protected]> Signed-off-by: Sawan Chandak <[email protected]> Signed-off-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent b5d1531 commit 3515832

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,7 @@ qla24xx_handle_plogi_done_event(struct scsi_qla_host *vha, struct event_arg *ea)
14641464
__func__, __LINE__, ea->fcport->port_name);
14651465
ea->fcport->chip_reset = vha->hw->base_qpair->chip_reset;
14661466
ea->fcport->logout_on_delete = 1;
1467+
ea->fcport->send_els_logo = 0;
14671468
qla24xx_post_gpdb_work(vha, ea->fcport, 0);
14681469
}
14691470
break;

drivers/scsi/qla2xxx/qla_target.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,13 @@ void qla2x00_async_nack_sp_done(void *s, int res)
585585
sp->fcport->fw_login_state = DSC_LS_PLOGI_COMP;
586586
sp->fcport->logout_on_delete = 1;
587587
sp->fcport->plogi_nack_done_deadline = jiffies + HZ;
588+
sp->fcport->send_els_logo = 0;
588589
break;
589590

590591
case SRB_NACK_PRLI:
591592
sp->fcport->fw_login_state = DSC_LS_PRLI_COMP;
592593
sp->fcport->deleted = 0;
594+
sp->fcport->send_els_logo = 0;
593595

594596
if (!sp->fcport->login_succ &&
595597
!IS_SW_RESV_ADDR(sp->fcport->d_id)) {

0 commit comments

Comments
 (0)