scsi: qla2xxx: Fix losing FCP-2 targets on long port disable with I/Os
authorArun Easi <aeasi@marvell.com>
Thu, 16 Jun 2022 05:35:06 +0000 (22:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:17 +0000 (14:24 +0200)
commit420e449e21b928d6478b02e9e18261a99cca35f4
treeaf7502e149a691eb03787ec212daa3ac46693940
parent3f1102898b7bbb17763d8cc50fd9d61567ed082b
scsi: qla2xxx: Fix losing FCP-2 targets on long port disable with I/Os

commit 2416ccd3815ba1613e10a6da0a24ef21acfe5633 upstream.

FCP-2 devices were not coming back online once they were lost, login
retries exhausted, and then came back up.  Fix this by accepting RSCN when
the device is not online.

Link: https://lore.kernel.org/r/20220616053508.27186-10-njavali@marvell.com
Fixes: 44c57f205876 ("scsi: qla2xxx: Changes to support FCP2 Target")
Cc: stable@vger.kernel.org
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_init.c