]> git.baikalelectronics.ru Git - kernel.git/commit
fib: remove a useless synchronize_rcu() call
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 13 Oct 2010 04:43:04 +0000 (04:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Oct 2010 18:13:22 +0000 (11:13 -0700)
commita785ab33f036fb73aa8c54609ca081815c4d38c7
treef4b09caa75228520d8631dc4e0c5ce1953ec6461
parent3d6b8b9b84a7497d94bddeb9456bca5a7467308b
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 9c0137dfc47a2 added anyway.

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