mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
scsi: qla2xxx: Fix N2N inconsistent PLOGI
commit c13ce47c64ea8f14e77eecb40d1e7c2ac667f898 upstream. For N2N topology, ELS Passthrough is used to send PLOGI. On failure of ELS pass through PLOGI, driver flipped over to using LLIOCB PLOGI for N2N. This is not consistent. Delete the session to restart the connection where ELS pass through PLOGI would be used consistently. Link: https://lore.kernel.org/r/[email protected] Fixes: c76ae845ea83 ("scsi: qla2xxx: Add error handling for PLOGI ELS passthrough") Cc: [email protected] Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Quinn Tran <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
2d087c7e55
commit
7f9ce17a1d
1 changed files with 3 additions and 5 deletions
|
|
@ -2859,6 +2859,7 @@ static void qla2x00_els_dcmd2_sp_done(srb_t *sp, int res)
|
|||
set_bit(ISP_ABORT_NEEDED,
|
||||
&vha->dpc_flags);
|
||||
qla2xxx_wake_dpc(vha);
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
default:
|
||||
|
|
@ -2868,9 +2869,7 @@ static void qla2x00_els_dcmd2_sp_done(srb_t *sp, int res)
|
|||
fw_status[0], fw_status[1], fw_status[2]);
|
||||
|
||||
fcport->flags &= ~FCF_ASYNC_SENT;
|
||||
qla2x00_set_fcport_disc_state(fcport,
|
||||
DSC_LOGIN_FAILED);
|
||||
set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
|
||||
qlt_schedule_sess_for_deletion(fcport);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
@ -2882,8 +2881,7 @@ static void qla2x00_els_dcmd2_sp_done(srb_t *sp, int res)
|
|||
fw_status[0], fw_status[1], fw_status[2]);
|
||||
|
||||
sp->fcport->flags &= ~FCF_ASYNC_SENT;
|
||||
qla2x00_set_fcport_disc_state(fcport, DSC_LOGIN_FAILED);
|
||||
set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
|
||||
qlt_schedule_sess_for_deletion(fcport);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue