[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <98016c09e181336c477bf07d5e58b98bd644b075.camel@redhat.com>
Date: Tue, 20 Feb 2024 13:56:13 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>
Cc: Kuniyuki Iwashima <kuni1840@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH v2 net-next 09/14] af_unix: Skip GC if no cycle exists.
On Fri, 2024-02-16 at 13:05 -0800, Kuniyuki Iwashima wrote:
> diff --git a/include/net/af_unix.h b/include/net/af_unix.h
> index b3ba5e949d62..59ec8d7880ce 100644
> --- a/include/net/af_unix.h
> +++ b/include/net/af_unix.h
> @@ -36,6 +36,7 @@ struct unix_vertex {
> struct list_head entry;
> struct list_head scc_entry;
> unsigned long out_degree;
> + unsigned long self_degree;
> unsigned long index;
> unsigned long lowlink;
> };
The series increases considerably struct unix_sock size. Have you
considered dynamically allocating unix_vertex only when using
SCM_RIGTHS?
Thanks,
Paolo
Powered by blists - more mailing lists