From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id 496576B005A for ; Fri, 12 Jun 2009 04:45:52 -0400 (EDT) Subject: Re: slab: setup allocators earlier in the boot sequence From: Benjamin Herrenschmidt In-Reply-To: <1244794648.30512.21.camel@penberg-laptop> References: <200906111959.n5BJxFj9021205@hera.kernel.org> <1244770230.7172.4.camel@pasglop> <1244779009.7172.52.camel@pasglop> <1244780756.7172.58.camel@pasglop> <1244783235.7172.61.camel@pasglop> <1244792079.7172.74.camel@pasglop> <1244792380.7172.77.camel@pasglop> <1244794648.30512.21.camel@penberg-laptop> Content-Type: text/plain Date: Fri, 12 Jun 2009 18:47:06 +1000 Message-Id: <1244796426.7172.90.camel@pasglop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Pekka Enberg Cc: Linus Torvalds , Linux Kernel list , linux-mm , mingo@elte.hu List-ID: On Fri, 2009-06-12 at 11:17 +0300, Pekka Enberg wrote: > Hi Ben, > > On Fri, 2009-06-12 at 17:39 +1000, Benjamin Herrenschmidt wrote: > > For example, slab_is_available() didn't always exist, and so in the > > early days on powerpc, we used a mem_init_done global that is set form > > mem_init() (not perfect but works in practice). And we still have code > > using that to do the test. > > Looking at powerpc arch code, can we get rid of the *_maybe_bootmem() > functions now? Or is slab initialization too late still? FWIW, I think > one simple fix on PPC is to just clear __GFP_NOWAIT in those functions > (all of them seem to be using GFP_KERNEL which is wrong during boot). I -think- we still use those in setup_arch() so we can't get rid of that completely yet. Cheers, Ben. > Pekka > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo@kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: email@kvack.org -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org