ofproto-dpif: Fix thread safety annotation on rule_dpif_lookup_in_table().
[cascardo/ovs.git] / ofproto / ofproto-dpif.c
index c7e32ef..c5414f3 100644 (file)
@@ -4791,7 +4791,7 @@ bool
 rule_dpif_lookup_in_table(struct ofproto_dpif *ofproto,
                           const struct flow *flow, struct flow_wildcards *wc,
                           uint8_t table_id, struct rule_dpif **rule)
-    OVS_ACQ_RDLOCK((*rule)->up.evict)
+    OVS_TRY_RDLOCK(true, (*rule)->up.evict)
 {
     struct cls_rule *cls_rule;
     struct classifier *cls;