Re: [REGRESSION] funny sched_domain build failure during resume

From: Peter Zijlstra
Date: Thu May 15 2014 - 11:13:09 EST


On Thu, May 15, 2014 at 10:41:14AM -0400, Johannes Weiner wrote:
> Is it necessary that resume paths allocate at all? Freeing at suspend
> what you have to reallocate at resume is asking for trouble. It's not
> just higher order allocations, either, even order-0 allocations are
> less reliable without GFP_IOFS. So I think this should be avoided as
> much as possible.

Well, in my case its because suspend does an effective hot-unplug of all
CPUs in the system except CPU0.

And if the cpu topology changes I need to allocate new data structures
and free the old ones.

The reverse is true on resume, it hot-plugs all CPUs again, same story.

Attachment: pgplBMf69__JE.pgp
Description: PGP signature