[SCSI] libfc: removes initializing fc_cpu_order and fc_cpu_mask per lport
authorVasu Dev <vasu.dev@intel.com>
Wed, 21 Oct 2009 23:27:28 +0000 (16:27 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:29 +0000 (12:00 -0600)
commit89f19a59de0ec4626c64d90d2f5e255961cab879
tree5680542ff703c38e2ff03ca983520427a18537be
parent22655ac22289d7b7def8ef2d72eafe5024bd57fe
[SCSI] libfc: removes initializing fc_cpu_order and fc_cpu_mask per lport

Initializing these libfc globals per lport could mess up exch
allocation/free for existing lport.

So this patch moves their initialization to fc_setup_exch_mgr
so that these globals gets initialized only once for libfc.

Reported-by: Alex Lyakas <alexl@mellanox.co.il>
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/libfc/fc_exch.c