Re: slab: setup allocators earlier in the boot sequence

Pekka J Enberg
2009-06-12T06:16:31Z

Hi Benjamin,

[ First of all, sorry for the breakage and thank you for looking into
this! ]

On Fri, 12 Jun 2009, Benjamin Herrenschmidt wrote:
> > I'll cook up a patch that defines a global bitmask of "forbidden" GFP
> > bits and see how things go.
>
> >From ad87215e01b257ccc1af64aa9d5776ace580dea3 Mon Sep 17 00:00:00 2001
> From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Date: Fri, 12 Jun 2009 15:03:47 +1000
> Subject: [PATCH] Sanitize "gfp" flags during boot

OK, I am not sure we actually need that. The thing is, no one is allowed
to use kmalloc() unless slab_is_available() returns true so we can just
grep for the latter and do something like the following patch. Does that
make powerpc boot nicely again? Ingo, I think this fixes the early irq
screams you were having too.

There's some more in s390 architecture code and some drivers (!) but I
left them out from this patch for now.

Pekka