[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>
Этот коммит содержится в:

коммит произвёл
James Bottomley

родитель
cb0a6ca814
Коммит
030f4e001f
@@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Ссылка в новой задаче
Block a user