[SCSI] fcoe: fcoe_interface create, destroy and refcounting

Up to this point the fcoe_instance structure was simply kzalloc/kfreed.  This
patch introduces create and destroy functions as well as kref based reference
counting.  The create function will grow as the initialization code is moved
there.

Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Этот коммит содержится в:
Chris Leech
2009-08-25 14:00:02 -07:00
коммит произвёл James Bottomley
родитель cb0a6ca814
Коммит 030f4e001f
2 изменённых файлов: 79 добавлений и 19 удалений

Просмотреть файл

@@ -84,6 +84,7 @@ struct fcoe_interface {
struct packet_type fip_packet_type;
struct fcoe_ctlr ctlr;
struct fc_exch_mgr *oem; /* offload exchange manager */
struct kref kref;
};
/*