[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0906161104480.26093@gentwo.org>
Date: Tue, 16 Jun 2009 11:08:59 -0400 (EDT)
From: Christoph Lameter <cl@...ux-foundation.org>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>
cc: Nick Piggin <npiggin@...e.de>,
Pekka Enberg <penberg@...helsinki.fi>,
Heiko Carstens <heiko.carstens@...ibm.com>,
torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, kamezawa.hiroyu@...fujitsu.com,
lizf@...fujitsu.com, mingo@...e.hu, yinghai@...nel.org
Subject: Re: [GIT PULL v2] Early SLAB fixes for 2.6.31
On Tue, 16 Jun 2009, Benjamin Herrenschmidt wrote:
> On Mon, 2009-06-15 at 13:28 +0200, Nick Piggin wrote:
> > If a couple of specialised early boot code places have
> > to test slab_is_available() to prevent crap leaking into
> > our main allocators, then that's quite fine by me.
>
> slab_is_available() will not fix the problem in that case. In fact,
> existing tests of slab_is_available() have been broken because they
> assumed that when it was true, then GFP_KERNEL would work.
Can we get rid of slab_is_available for that purpose? AFAICT: There needs
to be something that tells us that the page allocator is available or that
the mm subsystem is fully operational.
Could we add more bootup states to enum system_states?
Something like
SYSTEM_BOOTMEM for the period where only boot memory allocations are possible
SYSTEM_ALLOC_AVAIL Page / slab allocators available
SYSTEM_PERCPU_AVAIL Percpu allocator functional
SYSTEM_MEM Memory subsystem operational.
?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists