Skip to contentSkip to conversation

net/ipv6: Remove gc_link warn on in fib6_info_release

PATCH Applied David Ahern 4 participants 5 messages Dec 19, 2023 – Dec 21, 2023

Subsystems (3)
lore
Share & tools
lore

David Ahern

author maintainer
#0 lore raw

PATCH 1/1 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

---
 include/net/ip6_fib.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
include/net/ip6_fib.h +1 -3
index 95ed495c3a40..1ba9f4ddf2f6 100644
@@ -328,10 +328,8 @@ static inline bool fib6_info_hold_safe(struct fib6_info *f6i)
 
 static inline void fib6_info_release(struct fib6_info *f6i)
 {
-	if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) {
-		DEBUG_NET_WARN_ON_ONCE(!hlist_unhashed(&f6i->gc_link));
+	if (f6i && refcount_dec_and_test(&f6i->fib6_ref))
 		call_rcu(&f6i->rcu, fib6_info_destroy_rcu);
-	}
 }
 
 enum fib6_walk_state {
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · David Ahern

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

Thanks !

maintainer
#2 lore raw
Quoted 11 lines · Eric Dumazet
Quoted 8 lines · David Ahern

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

Oops, I notice a bit too late I should have processed this one before merging back net into net-next.

I'll squash this change into the merge commit to preserve bisectability.

Cheers,

Paolo

maintainer
#3 lore raw
Quoted 9 lines · Paolo Abeni
Quoted 8 lines · Eric Dumazet
Quoted 7 lines · David Ahern

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

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Oops, I notice a bit too late I should have processed this one before merging back net into net-next.

Actually is not too late. I'll apply this commit just before merging back net. Sorry for the noise.

/P

#4 lore raw
In reply to David Ahern
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 9 lines · On Mon, 18 Dec 2023 20:07:42 -0700 you wrote:

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

[...]

Here is the summary with links:
- [net-next] net/ipv6: Remove gc_link warn on in fib6_info_release

    https://git.kernel.org/netdev/net-next/c/5a78a8121c4d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html