[ovs-dev] [PATCH V2] ovs-thread: Implement OVS specific barrier.
Ben Pfaff
blp at nicira.com
Fri Jun 13 17:48:13 UTC 2014
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>
More information about the dev
mailing list