Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/ipv6: Remove gc_link warn on in fib6_info_release

A revert of
3dec89b14d37 ("net/ipv6: Remove expired routes with a separated list of routes")
was sent for net-next. Revert the remainder of 5a08d0065a915
which added a warn on if a fib entry is still on the gc_link list
to avoid compile failures when net is merged to net-next

Signed-off-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20231219030742.25715-1-dsahern@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

David Ahern and committed by
Paolo Abeni
5a78a812 3ab57208

+1 -3
+1 -3
include/net/ip6_fib.h
··· 328 328 329 329 static inline void fib6_info_release(struct fib6_info *f6i) 330 330 { 331 - if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) { 332 - DEBUG_NET_WARN_ON_ONCE(!hlist_unhashed(&f6i->gc_link)); 331 + if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) 333 332 call_rcu(&f6i->rcu, fib6_info_destroy_rcu); 334 - } 335 333 } 336 334 337 335 enum fib6_walk_state {