Skip to content

Commit 0c03eca

Browse files
edumazetdavem330
authored andcommitted
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 <[email protected]> Cc: "Paul E. McKenney" <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 08252b3 commit 0c03eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/fib_trie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static void __leaf_free_rcu(struct rcu_head *head)
367367

368368
static inline void free_leaf(struct leaf *l)
369369
{
370-
call_rcu_bh(&l->rcu, __leaf_free_rcu);
370+
call_rcu(&l->rcu, __leaf_free_rcu);
371371
}
372372

373373
static inline void free_leaf_info(struct leaf_info *leaf)

0 commit comments

Comments
 (0)