[ovs-dev] [PATCH] timeval: Allow threads to disable poll interval check.

Ben Pfaff blp at nicira.com
Thu May 29 16:52:36 UTC 2014


On Wed, May 28, 2014 at 06:55:41PM -0700, Alex Wang wrote:
> Since some threads do not call time_poll() regularly in their main loop
> (e.g. non-leader revalidator threads), their intermittent invocation of
> time_poll() in other modules can cause warnings like below:
> 
> "Unreasonably long 16518ms poll interval".
> 
> To suppress such warning, this commit allows thread to disable poll interval
> check in time_poll() by calling disable_check_poll_interval().
> 
> Signed-off-by: Alex Wang <alexw at nicira.com>

Is this just because of the xpthread_barrier_wait() calls?  It might
be nice to instead write our own poll_block()-able barriers.



More information about the dev mailing list