Commit 2cd0c51e authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 48ebf6eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
	}
}