scsi: qedf: Use discovery list to traverse rports
authorHannes Reinecke <hare@suse.com>
Fri, 23 Aug 2019 09:52:42 +0000 (02:52 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Aug 2019 22:51:19 +0000 (18:51 -0400)
commit5797bcc897c363a775ac3d929b62d2579bdf8573
tree460cc5590e4a32c49e8e0a330e3ce20f2862e0f4
parentf6d63678b07f935fefd7cfefe7b43f56bad274b6
scsi: qedf: Use discovery list to traverse rports

The list of rports might become stale so we should rather traverse the
discovery list when trying relogin.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c