scsi: qla2xxx: Fix session state stuck in Get Port DB
authorQuinn Tran <quinn.tran@cavium.com>
Thu, 2 Aug 2018 20:16:50 +0000 (13:16 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Aug 2018 20:56:18 +0000 (16:56 -0400)
commit8fde6977ac478c00eeb2beccfdd4a6ad44219f6c
tree393c9fb469097db9c8eaaeee63d6748eed10ab70
parentb63d8b895a1038e5ff762e19b46e9fe9fa3a19a2
scsi: qla2xxx: Fix session state stuck in Get Port DB

This patch sets discovery state back to GNL (Get Name List) when session is
stuck at GPDB (Get Port DataBase). This will allow state machine to retry
login and move session state ahead in discovery.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c