[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iJF14hHuhgfCqe+CkRZfdRSmaAa-_04eYdamBh59Eye1A@mail.gmail.com>
Date: Tue, 19 Dec 2023 16:32:03 +0100
From: Eric Dumazet <edumazet@...gle.com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, David Ahern <dsahern@...nel.org>,
Kuniyuki Iwashima <kuni1840@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH RESEND v2 net-next 09/12] tcp: Check hlist_empty(&tb->bhash2)
instead of hlist_empty(&tb->owners).
On Tue, Dec 19, 2023 at 1:22 AM Kuniyuki Iwashima <kuniyu@...zon.com> wrote:
>
> We use hlist_empty(&tb->owners) to check if the bhash bucket has a socket.
> We can check the child bhash2 buckets instead.
>
> For this to work, the bhash2 bucket must be freed before the bhash bucket.
>
> Signed-off-by: Kuniyuki Iwashima <kuniyu@...zon.com>
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists