[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1480892192.4534.11.camel@perches.com>
Date: Sun, 04 Dec 2016 14:56:32 -0800
From: Joe Perches <joe@...ches.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Yishai Hadas <yishaih@...lanox.com>,
Tariq Toukan <tariqt@...lanox.com>, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mlx4: Use kernel sizeof and alloc styles
On Sun, 2016-12-04 at 12:58 -0800, Eric Dumazet wrote:
> On Sun, 2016-12-04 at 12:11 -0800, Joe Perches wrote:
> > Convert sizeof foo to sizeof(foo) and allocations with multiplications
> > to the appropriate kcalloc/kmalloc_array styles.
> >
> > Signed-off-by: Joe Perches <joe@...ches.com>
> > ---
>
> Gah.
>
> This is one of the hotest NIC driver on linux at this moment,
> with XDP and other efforts going on.
>
> Some kmalloc() are becoming kmalloc_node() in some dev branches, and
> there is no kmalloc_array_node() yet.
Well that kmalloc_array_node, like this patch, is pretty trivial to add.
Something like the attached for kmalloc_array_node and kcalloc_node.
> This kind of patch is making rebases/backports very painful.
That's really not an issue for me.
> Could we wait ~6 months before doing such cleanup/changes please ?
This is certainly a trivial patch that could be
done at almost any time.
> If you believe a bug needs a fix, please send a patch to address it.
>
> Thanks.
No worries.
View attachment "slab.diff" of type "text/x-patch" (1494 bytes)
Powered by blists - more mailing lists