aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bolshakov <[email protected]>2019-11-25 19:56:59 +0300
committerMartin K. Petersen <[email protected]>2019-12-09 18:29:27 -0500
commit5e6b01d84b9d20bcd77fc7c4733a2a4149bf220a (patch)
tree43d84098c64d856f0d08ece6a846e4c2e74efd8c
parentfd1de5830a5abaf444cc4312871e02c41e24fdc1 (diff)
scsi: qla2xxx: Send Notify ACK after N2N PLOGI
qlt_handle_login schedules session for deletion even if a login is in progress. That causes login bouncing, i.e. a few logins are made before it settles down. Complete the first login by sending Notify Acknowledge IOCB via qlt_plogi_ack_unref if the session is pending login completion. Fixes: 9cd883f07a54 ("scsi: qla2xxx: Fix session cleanup for N2N") Cc: Krishna Kant <[email protected]> Cc: Alexei Potashnik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Quinn Tran <[email protected]> Acked-by: Himanshu Madhani <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Tested-by: Hannes Reinecke <[email protected]> Signed-off-by: Roman Bolshakov <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/qla2xxx/qla_target.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index eeb069d52f3d..68c14143e50e 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -4803,6 +4803,7 @@ static int qlt_handle_login(struct scsi_qla_host *vha,
switch (sess->disc_state) {
case DSC_DELETED:
+ case DSC_LOGIN_PEND:
qlt_plogi_ack_unref(vha, pla);
break;