Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933080AbZFLIRm (ORCPT ); Fri, 12 Jun 2009 04:17:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754019AbZFLIR2 (ORCPT ); Fri, 12 Jun 2009 04:17:28 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:39674 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753745AbZFLIR1 (ORCPT ); Fri, 12 Jun 2009 04:17:27 -0400 Subject: Re: slab: setup allocators earlier in the boot sequence From: Pekka Enberg To: Benjamin Herrenschmidt Cc: Linus Torvalds , Linux Kernel list , linux-mm , mingo@elte.hu In-Reply-To: <1244792380.7172.77.camel@pasglop> 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> Date: Fri, 12 Jun 2009 11:17:28 +0300 Message-Id: <1244794648.30512.21.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.24.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 858 Lines: 20 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). Pekka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/