diff mbox series

[net-next] net/ipv6: Remove gc_link warn on in fib6_info_release

Message ID 20231219030742.25715-1-dsahern@kernel.org (mailing list archive)
State Accepted
Commit 5a78a8121c4d8e37035274c094e3af15fb79f004
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net/ipv6: Remove gc_link warn on in fib6_info_release | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1616 this patch: 1616
netdev/cc_maintainers warning 2 maintainers not CCed: pabeni@redhat.com kuba@kernel.org
netdev/build_clang fail Errors and warnings before: 16 this patch: 16
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1655 this patch: 1655
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 11 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

David Ahern Dec. 19, 2023, 3:07 a.m. UTC
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>
---
 include/net/ip6_fib.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Eric Dumazet Dec. 19, 2023, 8:34 a.m. UTC | #1
On Tue, Dec 19, 2023 at 4:07 AM David Ahern <dsahern@kernel.org> 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
>
> Signed-off-by: David Ahern <dsahern@kernel.org>

Reviewed-by: Eric Dumazet <edumazet@google.com>

Thanks !
Paolo Abeni Dec. 21, 2023, 9:11 p.m. UTC | #2
On Tue, 2023-12-19 at 09:34 +0100, Eric Dumazet wrote:
> On Tue, Dec 19, 2023 at 4:07 AM David Ahern <dsahern@kernel.org> 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
> > 
> > Signed-off-by: David Ahern <dsahern@kernel.org>
> 
> Reviewed-by: Eric Dumazet <edumazet@google.com>

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
Paolo Abeni Dec. 21, 2023, 9:21 p.m. UTC | #3
On Thu, 2023-12-21 at 22:11 +0100, Paolo Abeni wrote:
> On Tue, 2023-12-19 at 09:34 +0100, Eric Dumazet wrote:
> > On Tue, Dec 19, 2023 at 4:07 AM David Ahern <dsahern@kernel.org> 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
> > > 
> > > Signed-off-by: David Ahern <dsahern@kernel.org>
> > 
> > Reviewed-by: Eric Dumazet <edumazet@google.com>
> 
> 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
patchwork-bot+netdevbpf@kernel.org Dec. 21, 2023, 9:30 p.m. UTC | #4
Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

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
> 
> Signed-off-by: David Ahern <dsahern@kernel.org>
> 
> [...]

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!
diff mbox series

Patch

diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index 95ed495c3a40..1ba9f4ddf2f6 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -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 {