scsi: qla2xxx: Fix n2n_ae flag to prevent dev_loss on PDB change
On a port db changes, this patch will set n2n_ae flag for N2N connection when requesting for Report ID Acquition MBX, instead of Loop Initialization or point to point asynchronous events. Signed-off-by: Darren Trapp <darren.trapp@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
e473b30741
commit
1763c1fd76
@@ -3747,6 +3747,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
|
||||
id.b.area = rptid_entry->port_id[1];
|
||||
id.b.al_pa = rptid_entry->port_id[0];
|
||||
id.b.rsvd_1 = 0;
|
||||
ha->flags.n2n_ae = 0;
|
||||
|
||||
if (rptid_entry->format == 0) {
|
||||
/* loop */
|
||||
@@ -3799,6 +3800,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
|
||||
set_bit(N2N_LOGIN_NEEDED, &vha->dpc_flags);
|
||||
set_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags);
|
||||
set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags);
|
||||
ha->flags.n2n_ae = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3875,6 +3877,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
|
||||
vha->d_id.b.area = rptid_entry->port_id[1];
|
||||
vha->d_id.b.al_pa = rptid_entry->port_id[0];
|
||||
|
||||
ha->flags.n2n_ae = 1;
|
||||
spin_lock_irqsave(&ha->vport_slock, flags);
|
||||
qlt_update_vp_map(vha, SET_AL_PA);
|
||||
spin_unlock_irqrestore(&ha->vport_slock, flags);
|
||||
|
||||
Reference in New Issue
Block a user