ipv4/fib: use synchronize_net() when holding RTNL
authorEric Dumazet <edumazet@google.com>
Fri, 9 Feb 2024 15:30:59 +0000 (15:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2024 12:17:03 +0000 (12:17 +0000)
commit2cd0c51e3baf7aa49e802c06cb1b2ffa9c82fbe1
treeb13c3f3e830ed2bb4be87b6f142c97a1a36f5adb
parent48ebf6ebbc91a6e6b2c0ac1217573e81b37ef2ab
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>
net/ipv4/fib_trie.c