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

Jesse Gross jesse at nicira.com
Thu Dec 30 17:29:07 UTC 2010


On Thu, Dec 30, 2010 at 12:26 PM, Ben Pfaff <blp at nicira.com> wrote:
> 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.

Yes, that's true.  I added that to the commit message.




More information about the dev mailing list