summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-02-09 15:30:59 +0000
committerDavid S. Miller <davem@davemloft.net>2024-02-12 12:17:03 +0000
commit2cd0c51e3baf7aa49e802c06cb1b2ffa9c82fbe1 (patch)
treeb13c3f3e830ed2bb4be87b6f142c97a1a36f5adb /net
parent48ebf6ebbc91a6e6b2c0ac1217573e81b37ef2ab (diff)
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 <edumazet@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/fib_trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 3ff35f811765..0fc7ab5832d1 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();
}
}