scsi: qla2xxx: Fix stuck login session
authorQuinn Tran <qutran@marvell.com>
Fri, 30 Aug 2019 22:24:00 +0000 (15:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 7 Sep 2019 19:38:55 +0000 (15:38 -0400)
commitce0ba496dccfc15d3a8866b845864585b5d316ff
treeef67c20808055dcee089ce9ccf28db5f76858a57
parent32a13df21668b92f70f0673387f29251e0f285ec
scsi: qla2xxx: Fix stuck login session

Login session was stucked on cable pull. When FW is in the middle PRLI
PENDING + driver is in Initiator mode, driver fails to check back with FW to
see if the PRLI has completed. This patch would re-check with FW again to
make sure PRLI would complete before pushing forward with relogin.

Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Link: https://lore.kernel.org/r/20190830222402.23688-5-hmadhani@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c