]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: changes to libfc_host_alloc to consolidate initialization with allocation
authorChris Leech <christopher.leech@intel.com>
Tue, 3 Nov 2009 19:46:08 +0000 (11:46 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:56 +0000 (12:00 -0600)
commit8687a554e4bb5e58ba364bd1b93bbd746633f884
tree83f40bc6490feddd18fe9650cbc3b61f0fb7b2e2
parent7ea6d64ebfdcb01e485c4ae9aa831fe2502e9fef
[SCSI] libfc: changes to libfc_host_alloc to consolidate initialization with allocation

I'd like to keep basic initialization together with allocation, which means
this can't just be a tail-call to scsi_host_alloc.

This is needed to create a generic libfc host allocation routine for NPIV
VN_Ports, which will share the exchange ID space (through sharing exchange
manager structures) with the parent lport.  In order to clone the exchange
manager list when the lport is allocated, the list head must be initialized
earlier.

Also, update fnic to use the libfc_host_alloc so that later changes do not break
it. (contribution by Joe Eykholt)

Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Joe Eykholt <jeykholt@cisco.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/fnic/fnic_main.c
drivers/scsi/libfc/fc_lport.c
include/scsi/libfc.h