Skip to content

Commit a0a4a85

Browse files
Eric Dumazetdavem330
authored andcommitted
fib: remove a useless synchronize_rcu() call
fib_nl_delrule() calls synchronize_rcu() for no apparent reason, while rtnl is held. I suspect it was done to avoid an atomic_inc_not_zero() in fib_rules_lookup(), which commit 7fa7cb7 added anyway. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2c1c000 commit a0a4a85

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/core/fib_rules.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
494494
}
495495
}
496496

497-
synchronize_rcu();
498497
notify_rule_change(RTM_DELRULE, rule, ops, nlh,
499498
NETLINK_CB(skb).pid);
500499
fib_rule_put(rule);

0 commit comments

Comments
 (0)