Re: [PATCH] kmalloc_percpu

Andrew Morton (akpm@digeo.com)
Tue, 6 May 2003 00:22:29 -0700


"David S. Miller" <davem@redhat.com> wrote:
>
> Make kmalloc_per_cpu() merely a convenience macro, made up of existing
> non-percpu primitives.

I think we're agreeing here.

The current kmalloc_percpu() is a wrapper around kmalloc. That seems OK to
me.

What we _do_ want to solve is the problem that DEFINE_PERCPU() does not work
in modules. Rusty's patch (reworked to not alter kmalloc_percpu) would suit
that requirement.

(kiran has a new version of kmalloc_percpu() which may be faster than the
current one, but for the purposes of this discussion it's equivalent).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/