[ovs-dev] [PATCH V2] ovs-thread: Implement OVS specific barrier.

Alex Wang alexw at nicira.com
Sat Jun 14 00:01:14 UTC 2014


Thx for the review, applied to master.


On Fri, Jun 13, 2014 at 10:48 AM, Ben Pfaff <blp at nicira.com> wrote:

> On Mon, Jun 09, 2014 at 02:28:44PM -0700, Alex Wang wrote:
> > Non-leader revalidator thread uses pthread_barrier_* functions in their
> > main loop to synchronize with leader thread.  However, since those
> threads
> > only call poll_block() intermittently, the poll interval check in
> > poll_block() can wrongly take the time since last call as poll interval
> > and issue the following warnings:
> >
> > "Unreasonably long XXXXms poll interval".
> >
> > To prevent it, this commit implements the barrier struct and operations
> > for OVS which allow thread to block on barrier via poll_block().
> >
> > Signed-off-by: Alex Wang <alexw at nicira.com>
> >
> > ---
> > PATCH -> V2:
> > - change the name of ovs_barrier_wait() to ovs_barrier_block().
> > - add comment to each barrier funciton.
>
> Acked-by: Ben Pfaff <blp at nicira.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20140613/f3ba5c94/attachment-0005.html>


More information about the dev mailing list