Commit a0a4a85a15df6335e3d11f83b2ac06ebebea313f

Authored by Eric Dumazet
Committed by David S. Miller
1 parent 2c1c00040a

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 7fa7cb7109d07 added anyway.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

net/core/fib_rules.c
... ... @@ -494,7 +494,6 @@
494 494 }
495 495 }
496 496  
497   - synchronize_rcu();
498 497 notify_rule_change(RTM_DELRULE, rule, ops, nlh,
499 498 NETLINK_CB(skb).pid);
500 499 fib_rule_put(rule);