scsi: qla2xxx: Fix login timeout
authorQuinn Tran <qutran@marvell.com>
Thu, 6 Aug 2020 11:10:07 +0000 (04:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:36 +0000 (11:29 +0200)
commit3d2419958fc5afe874bdac28504250f42d0631d3
tree74499e1be68acafdf10f0e5e03e45c782d137293
parenteb34d23c94734f762624fbd9f98903feeb7fd771
scsi: qla2xxx: Fix login timeout

[ Upstream commit abb31aeaa9b20680b0620b23fea5475ea4591e31 ]

Multipath errors were seen during failback due to login timeout.  The
remote device sent LOGO, the local host tore down the session and did
relogin. The RSCN arrived indicates remote device is going through failover
after which the relogin is in a 20s timeout phase.  At this point the
driver is stuck in the relogin process.  Add a fix to delete the session as
part of abort/flush the login.

Link: https://lore.kernel.org/r/20200806111014.28434-5-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_gs.c
drivers/scsi/qla2xxx/qla_target.c