Alex Wang pointed out that the RCU postpone thread can end up busy-waiting.
The first two patches in this series fix the problem.  The remaining two
patches make it easier to track down threads that never quiesce.

Ben Pfaff (4):
  timeval: Preserve quiescence across time_poll().
  ovs-thread: Quiesce in xpthread_barrier_wait().
  ovs-thread: Make caller provide thread name when creating a thread.
  ovs-rcu: Log a helpful warning when ovsrcu_synchronize() stalls.

 lib/dpif-netdev.c              |    6 +-----
 lib/netdev-dpdk.c              |    4 +---
 lib/ovs-rcu.c                  |   34 +++++++++++++++++++++++++++++++---
 lib/ovs-rcu.h                  |    1 +
 lib/ovs-thread.c               |   20 +++++++++++++++-----
 lib/ovs-thread.h               |    2 +-
 lib/timeval.c                  |   14 +++++++++-----
 ofproto/ofproto-dpif-monitor.c |    3 +--
 ofproto/ofproto-dpif-upcall.c  |   26 ++++++++------------------
 vswitchd/system-stats.c        |    3 ++-
 10 files changed, 70 insertions(+), 43 deletions(-)

-- 
1.7.10.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to