Re: [ovs-dev] [branch-2.0] ofproto-dpif: Fix rule delete deadlock.

2014-01-28 Thread Ben Pfaff
On Tue, Jan 28, 2014 at 02:57:10PM -0800, Ethan Jackson wrote: > When doing rule expiration, ofproto_rule_delete__() take the > ofproto_mutex and calls rule_get_stats(). rule_get_stats() can do an > xlate_actions() which may take the ofproto_mutex, causing a deadlock. > > Signed-off-by: Ethan Jac

[ovs-dev] [branch-2.0] ofproto-dpif: Fix rule delete deadlock.

2014-01-28 Thread Ethan Jackson
When doing rule expiration, ofproto_rule_delete__() take the ofproto_mutex and calls rule_get_stats(). rule_get_stats() can do an xlate_actions() which may take the ofproto_mutex, causing a deadlock. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif.c | 18 -- ofproto/of