[ovs-dev] [PATCH 1/7] ofproto-dpif.at: Fix some races

YAMAMOTO Takashi yamamoto at valinux.co.jp
Tue May 13 01:23:03 UTC 2014

> On Tue, May 13, 2014 at 09:42:02AM +1200, Joe Stringer wrote:
>> Is there any general principles behind fixing these? I'm wondering if
>> there's a way I can prevent these in future.

probably the most typical case is to wait for upcall handler
after netdev-dummy/recieve.

another typical one is to wait for log writer.  it might be
a good idea to disable async log writing for tests.

> If we come up with a general principle like that, maybe we can come up
> with a systematic way to fix the races without sleeping.  For example,
> adding some "ovs-appctl" call that can (somehow) wait until the
> processing of previously received packets has completed.

it would be great if it can be done without affecting non-test cases.


More information about the dev mailing list