scsi: qla2xxx: Remove all rports if fabric scan retry fails
authorQuinn Tran <quinn.tran@cavium.com>
Fri, 31 Aug 2018 18:24:35 +0000 (11:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2019 06:26:08 +0000 (08:26 +0200)
commit2b983f212c68c6a1ed7e5c04023d9cf97aea9ae7
tree3ff480492f436080ab4cd6642b4f6df93207d21c
parent6b449e4cf09021310552e319fa1cccff45b67a4a
scsi: qla2xxx: Remove all rports if fabric scan retry fails

[ Upstream commit 9ba1cb25c151de306d64647e545d34af64f30c19 ]

When all fabric scan retries fail, remove all RPorts, DMA resources for the
command. Otherwise we have stale Rports.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.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