datapath-windows: Removed gOvsCtrlLock global spinlock
authorSorin Vinturis <svinturis@cloudbasesolutions.com>
Thu, 23 Apr 2015 20:27:53 +0000 (20:27 +0000)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 23 Apr 2015 21:49:33 +0000 (14:49 -0700)
commit3ed424e5e5d614e08a58ffe700bbe88ed0514a7b
tree6a064375ebbe3686970f6b77a77d2cf4a0fffea4
parentdd92c6165ddb53922562c43fdcc8845dc4bb435a
datapath-windows: Removed gOvsCtrlLock global spinlock

There is no need to use gOvsCtrlLock spinlock to guard the switch
context, as there is now the switch context's reference count used
for this purpose.

Now the gOvsCtrlLock spinlock guards only one shared resource, the
OVS_OPEN_INSTANCE global instance array.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
datapath-windows/ovsext/Datapath.c
datapath-windows/ovsext/Flow.c
datapath-windows/ovsext/Switch.c
datapath-windows/ovsext/User.c
datapath-windows/ovsext/Vport.c