]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit4cea9896792b4653930cdc298186829c1fec94cb
treea26f1913bfe754700cf3ef38096d4c17bbbc321c
parent87a57690dfdccc31344af4b60549dbc16f4f849a
[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