Re: [patch 5/8] x86: use this_cpu_xxx to replace percpu_xxx funcs

From: Ingo Molnar
Date: Tue Mar 06 2012 - 02:57:53 EST



* Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Tue, 6 Mar 2012 08:46:01 +0100 Ingo Molnar <mingo@xxxxxxx> wrote:
>
> > Will percpu_write() be removed altogether? If so then the
> > changelog should say *that*, and explain that on x86 this is a
> > simple renaming of the API, not a long explanation about
> > scenarios that don't actually matter.
> >
> > If percpu_write() is not being removed then I don't see how this
> > patch is an improvement: it's supposed to result in the same
> > instructions being emitted, and __this_cpu_write() et al are
> > distinctly longer to write ...
> >
> > So what's the plan here?
>
> All percpu_xxx() functions get removed.

Fair enough - then please see my namespace comments for the
other patch, before we start spreading these APIs to hundreds of
places ...

Also, IMHO the lack of debugging API is troubling as well.
Thomas found a couple of really, really hairy this_cpu related
bugs.

Thanks,

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