scsi: qla2xxx: Fix stuck login session
authorQuinn Tran <qutran@marvell.com>
Fri, 30 Aug 2019 22:24:00 +0000 (15:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:08:28 +0000 (20:08 +0100)
commit292e8c2eaf07c0ef502713688f8155916f2dd5cd
tree37bff9b320dee1e7928e90ab84977c14184dc358
parent1df80889c9db960252e3bfddbae76320f4a0eafb
scsi: qla2xxx: Fix stuck login session

[ Upstream commit ce0ba496dccfc15d3a8866b845864585b5d316ff ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_init.c