[SCSI] fcoe: add mutex to protect create and destroy
authorChris Leech <christopher.leech@intel.com>
Tue, 25 Aug 2009 21:00:13 +0000 (14:00 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:07:36 +0000 (12:07 -0500)
commitdfc1d0fe3a8b2139295600ab519f24059493e6f6
treea26f1913bfe754700cf3ef38096d4c17bbbc321c
parent54b649f88eb17a29687bece4b8ad7d72d99e2d95
[SCSI] fcoe: add mutex to protect create and destroy

Rather than rely on the hostlist_lock to be held while creating exchange
managers, serialize fcoe instance creation and destruction with a mutex.
This will allow the hostlist addition to be moved out of fcoe_if_create(),
which will simplify NPIV support.

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>
drivers/scsi/fcoe/fcoe.c