[SCSI] fcoe, libfc: initialize EM anchors list and then update npiv EMs
authorVasu Dev <vasu.dev@intel.com>
Fri, 25 Feb 2011 23:03:01 +0000 (15:03 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 1 Mar 2011 00:31:53 +0000 (18:31 -0600)
commit72fa396bf57b31e8e2a401a21a3a088c0cc6b043
treec4094d3f8db3265dd122952867c1e8ff4e6abb63
parentf31624831a79b9e3f129f6c3b0a1b83903a7b61e
[SCSI] fcoe, libfc: initialize EM anchors list and then update npiv EMs

EM anchors list initialization for only master port was not enough to
keep npiv working as described here:-
https://lists.open-fcoe.org/pipermail/devel/2011-January/011063.html

So this patch moves fc_exch_mgr_list_clone to update npiv ports
EMs once EM anchors list initialized.

Also some cleanup, no need to set lport = NULL as that always
get initialized later.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/fcoe.c
drivers/scsi/libfc/fc_exch.c
drivers/scsi/libfc/fc_lport.c
drivers/scsi/libfc/fc_npiv.c