From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with ESMTP id BA68D6B005A for ; Fri, 12 Jun 2009 04:52:33 -0400 (EDT) Subject: Re: slab: setup allocators earlier in the boot sequence From: Benjamin Herrenschmidt In-Reply-To: <1244796211.30512.32.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> <1244792745.30512.13.camel@penberg-laptop> <1244796045.7172.82.camel@pasglop> <1244796211.30512.32.camel@penberg-laptop> Content-Type: text/plain Date: Fri, 12 Jun 2009 18:53:57 +1000 Message-Id: <1244796837.7172.95.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, cl@linux-foundation.org, akpm@linux-foundation.org, npiggin@suse.de List-ID: > Yes, you're obviously right. I overlooked the fact that arch code have > their own special slab_is_available() heuristics (yikes!). > > But are you happy with the two patches I posted so I can push them to > Linus? I won't be able to test them until tomorrow. However, I think the first one becomes unnecessary with the second one applied (provided you didn't miss a case), no ? I still prefer my approach of having a more fine grained control of what bits to remove. First because applying a mask is less expensive than a conditional branch (I used a negative mask because it would be too easy to miss bits otherwise) and second, because it allows for masking of other bits easily, for example, __GFP_IO for the suspend path etc... Now, if you find it a bit too ugly, feel free to rename smellybits to something else and create an accessor function for setting what bits are masked out, but I still believe that the basic idea behind my patch is saner than yours :-) Cheers, Ben. -- 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