[SCSI] fcoe: modifies fcoe_hostlist_lock uses as prep work to add shared offload EM
authorVasu Dev <vasu.dev@intel.com>
Thu, 30 Jul 2009 00:05:15 +0000 (17:05 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:52:09 +0000 (17:52 -0500)
commite8af4d4380babc89d193c16163f070a6418f033b
treeea32ede76e22dd02694a53030ea7776170c4166c
parent52ff878c912215210f53c0a080552dd6ba3055a2
[SCSI] fcoe: modifies fcoe_hostlist_lock uses as prep work to add shared offload EM

Modifies fcoe_hostlist_lock uses such that a new EM allocation in
fcoe_em_config and adding new fcoe_softc using fcoe_hostlist_add
are atomic, this is to ensure that a shared offload EM gets allocated
only once per eth device for its all lports.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/fcoe.c