Re: [PATCH] kmalloc_percpu

Andrew Morton (akpm@digeo.com)
Mon, 5 May 2003 22:48:15 -0700


"David S. Miller" <davem@redhat.com> wrote:
>
>
> Please address the ia64 concerns then :-) It probably means we
> have to stay with the dereferencing stuff... at which point you
> might as well use normal kmalloc() and smp_processor_id() indexing
> inside of modules.

I think so. So we'd end up with:

- DEFINE_PER_CPU and kmalloc_percpu() work in core kernel, and use the 32k
pool.

- DEFINE_PER_CPU in modules uses the 32k pool as well (core kernel does the
allocation).

- kmalloc_per_cpu() is unavailble to modules (it ain't exported).

AFAICT the only thing which will break is sctp, which needs a trivial
conversion to DEFINE_PER_CPU.

-
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/