Re: [PATCH] perf/x86/intel: Avoid unnecessary reallocations of memory allocated in cpu hotplug prepare state

From: Peter Zijlstra
Date: Tue Dec 18 2018 - 06:38:27 EST


On Tue, Dec 18, 2018 at 12:25:23PM +0100, Thomas Gleixner wrote:
> On Tue, 18 Dec 2018, Peter Zijlstra wrote:
> > On Tue, Dec 18, 2018 at 06:30:33PM +0800, zhe.he@xxxxxxxxxxxxx wrote:
> > > Besides, in preempt-rt full mode, the freeing can happen in atomic context and
> > > thus cause the following BUG.
> >
> > Hurm, I though we fixed all those long ago..
>
> Either we missed that one or it came back somehow.
>
> > And no, the patch is horrible; that's what we have things like
> > x86_pmu::cpu_dead() for.
>
> Like the below?

Look familiar that ;-)