Re: [ovs-dev] [PATCH] ofproto-dpif-monitor: Fix deadlock.

2014-04-07 Thread Alex Wang
Yes, I can reproduce it, for example I have 2 vms, and I configure 2K bfd monitored tunnel together at the same time. And then, I can see one end will be deadlocked. On Mon, Apr 7, 2014 at 5:20 PM, Ben Pfaff wrote: > On Thu, Apr 03, 2014 at 09:02:48PM -0700, Alex Wang wrote: > > Commit 6b59b54

Re: [ovs-dev] [PATCH] ofproto-dpif-monitor: Fix deadlock.

2014-04-07 Thread Ben Pfaff
On Thu, Apr 03, 2014 at 09:02:48PM -0700, Alex Wang wrote: > Commit 6b59b543 (ovs-thread: Use fair (but nonrecursive) > rwlocks on glibc.) changed the rwlocks to nonrecursive, > writer-biased lock. It also made the following deadlock > situation possible. > > Assume BFD is used on both end of a l

[ovs-dev] [PATCH] ofproto-dpif-monitor: Fix deadlock.

2014-04-03 Thread Alex Wang
Commit 6b59b543 (ovs-thread: Use fair (but nonrecursive) rwlocks on glibc.) changed the rwlocks to nonrecursive, writer-biased lock. It also made the following deadlock situation possible. Assume BFD is used on both end of a link. Consider the following events: 1. Handler at one end received the