[ovs-dev] [PATCH] datapath-windows: cleanup dump state during instance cleanup

Nithin Raju nithin at vmware.com
Mon Sep 15 15:12:51 UTC 2014


On Sep 14, 2014, at 8:03 PM, Samuel Ghinet <sghinet at cloudbasesolutions.com<mailto:sghinet at cloudbasesolutions.com>> wrote:

I have a question here,
is a file HANDLE normally used by only one userspace thread at a time (so that if you have multiple threads, each thread will have its own unique file HANDLEs), or each thread may use the file HANDLEs opened by other threads?

Sam,
I am not sure if your question was specific to Windows file/device HANDLEs or specific to netlink handles in OVS userspace:
- Windows HANDLEs I'd think should support concurrent operations. Eg. two userspace processes can be doing ReadFile() on the same handle.
- There's code in userspace to make sure that a netlink handle does not get used concurrently. See nl_pool_alloc().

Thanks,
-- Nithin




More information about the dev mailing list