X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-dpif.c;h=f5f91dd6a58aa5be383352bff72e67cc0e25245f;hb=c7c9a7c8ba4bb5b77d1e2f60975317aa8b3d252e;hp=c53a744cc8651d1f697e402d5f0144415cca1f5b;hpb=2c91602834c1955a0c0acfc5103ba1d6127cc3f1;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index c53a744cc..f5f91dd6a 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -4493,10 +4493,10 @@ rule_dpif_get_actions(const struct rule_dpif *rule) { struct rule_actions *actions; - ovs_rwlock_rdlock(&rule->up.rwlock); + ovs_mutex_lock(&rule->up.mutex); actions = rule->up.actions; rule_actions_ref(actions); - ovs_rwlock_unlock(&rule->up.rwlock); + ovs_mutex_unlock(&rule->up.mutex); return actions; }