[RTNETLINK]: Remove unnecessary locking in dump callbacks
[deliverable/linux.git] / net / core / fib_rules.c
index cb2dae19531b49cdf66b95b23f268b7de2de596a..8c5474e16683aa22971b1bed0390354b728a0f64 100644 (file)
@@ -495,8 +495,7 @@ static int dump_rules(struct sk_buff *skb, struct netlink_callback *cb,
        int idx = 0;
        struct fib_rule *rule;
 
-       rcu_read_lock();
-       list_for_each_entry_rcu(rule, ops->rules_list, list) {
+       list_for_each_entry(rule, ops->rules_list, list) {
                if (idx < cb->args[1])
                        goto skip;
 
@@ -507,7 +506,6 @@ static int dump_rules(struct sk_buff *skb, struct netlink_callback *cb,
 skip:
                idx++;
        }
-       rcu_read_unlock();
        cb->args[1] = idx;
        rules_ops_put(ops);
 
This page took 0.028672 seconds and 5 git commands to generate.