[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100616.115618.71114885.davem@davemloft.net>
Date: Wed, 16 Jun 2010 11:56:18 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6] inetpeer: restore small inet_peer
structures
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 16 Jun 2010 16:52:13 +0200
> Addition of rcu_head to struct inet_peer added 16bytes on 64bit arches.
>
> Thats a bit unfortunate, since old size was exactly 64 bytes.
>
> This can be solved, using an union between this rcu_head an four fields,
> that are normally used only when a refcount is taken on inet_peer.
> rcu_head is used only when refcnt=-1, right before structure freeing.
>
> Add a inet_peer_refcheck() function to check this assertion for a while.
>
> We can bring back SLAB_HWCACHE_ALIGN qualifier in kmem cache creation.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists