scsi: qla2xxx: Fix device reconnect in loop topology
authorArun Easi <aeasi@marvell.com>
Mon, 10 Jan 2022 05:02:11 +0000 (21:02 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Jan 2022 04:57:31 +0000 (23:57 -0500)
commit8ad4be3d15cf144b5834bdb00d5bbe4050938dc7
tree34861ad84e2281da573fe3da9673ecbad220516c
parent65120de26a547298d2718e7c4e8bdb7b3adc0cb7
scsi: qla2xxx: Fix device reconnect in loop topology

A device logout in loop topology initiates a device connection teardown
which loses the FW device handle. In loop topo, the device handle is not
regrabbed leading to device login failures and eventually to loss of the
device. Fix this by taking the main login path that does it.

Link: https://lore.kernel.org/r/20220110050218.3958-11-njavali@marvell.com
Cc: stable@vger.kernel.org
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_os.c