From: Eric Dumazet Date: Fri, 9 Feb 2024 15:30:59 +0000 (+0000) Subject: ipv4/fib: use synchronize_net() when holding RTNL X-Git-Tag: v6.9-rc1~159^2~279^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2cd0c51e3baf7aa49e802c06cb1b2ffa9c82fbe1;p=thirdparty%2Fkernel%2Flinux.git ipv4/fib: use synchronize_net() when holding RTNL tnode_free() should use synchronize_net() instead of syncronize_rcu() to release RTNL sooner. Signed-off-by: Eric Dumazet Reviewed-by: David Ahern Signed-off-by: David S. Miller --- diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 3ff35f8117655..0fc7ab5832d1a 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -501,7 +501,7 @@ static void tnode_free(struct key_vector *tn) if (tnode_free_size >= READ_ONCE(sysctl_fib_sync_mem)) { tnode_free_size = 0; - synchronize_rcu(); + synchronize_net(); } }