From: Eric Dumazet Date: Tue, 7 Aug 2012 00:47:11 +0000 (+0000) Subject: net: fib: fix incorrect call_rcu_bh() X-Git-Tag: MMI-PSA29.97-13-9~16149^2~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c03eca3d995e73d691edea8c787e25929ec156d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net: fib: fix incorrect call_rcu_bh() After IP route cache removal, I believe rcu_bh() has very little use and we should remove this RCU variant, since it adds some cycles in fast path. Anyway, the call_rcu_bh() use in fib_true is obviously wrong, since some users only assert rcu_read_lock(). Signed-off-by: Eric Dumazet Cc: "Paul E. McKenney" Signed-off-by: David S. Miller --- diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index f0cdb30921c0..57bd978483e1 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -367,7 +367,7 @@ static void __leaf_free_rcu(struct rcu_head *head) static inline void free_leaf(struct leaf *l) { - call_rcu_bh(&l->rcu, __leaf_free_rcu); + call_rcu(&l->rcu, __leaf_free_rcu); } static inline void free_leaf_info(struct leaf_info *leaf)