scsi: scsi_transport_fc: set scsi_target_id upon rescan
authorHannes Reinecke <hare@suse.com>
Wed, 20 Sep 2017 06:58:53 +0000 (08:58 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 25 Sep 2017 23:00:00 +0000 (19:00 -0400)
commit675195d0be27391d48d8d23c7c62991505168528
tree3211d46f739beb816e82b5c220d903928b02b3ab
parentc88f0e6b06f4092995688211a631bb436125d77b
scsi: scsi_transport_fc: set scsi_target_id upon rescan

When an rport is found in the bindings array there is no guarantee that
it had been a target port, so we need to call fc_remote_port_rolechg()
here to ensure the scsi_target_id is set correctly.  Otherwise the port
will never be scanned.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Tested-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_fc.c