[ovs-dev] [PATCH 2/7] datapath: Acquire dp->mutex when deleting a datapath.

Ben Pfaff blp at nicira.com
Thu Dec 30 17:26:11 UTC 2010


On Wed, Dec 29, 2010 at 03:41:30PM -0800, Jesse Gross wrote:
> It's possible that someone is using the datapath data structures
> when we attempt to delete the datapath.  The first writer will
> only hold dp->mutex, which we don't currently acquire when deleting.
> This adds that lock to prevent a potential race (this can't currently
> happen because userspace is single threaded).

...as long as no one runs "ovs-dpctl del-dp" while running ovs-vswitchd.

> Signed-off-by: Jesse Gross <jesse at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>




More information about the dev mailing list