From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933808AbZFLVnS (ORCPT ); Fri, 12 Jun 2009 17:43:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759571AbZFLVnF (ORCPT ); Fri, 12 Jun 2009 17:43:05 -0400 Received: from gate.crashing.org ([63.228.1.57]:57435 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757470AbZFLVnE (ORCPT ); Fri, 12 Jun 2009 17:43:04 -0400 Subject: Re: [PATCH v2] slab,slub: ignore __GFP_WAIT if we're booting or suspending From: Benjamin Herrenschmidt To: Andrew Morton Cc: Pekka Enberg , Ingo Molnar , linux-mm@kvack.org, linux-kernel@vger.kernel.org, npiggin@suse.de, cl@linux-foundation.org, torvalds@linux-foundation.org In-Reply-To: <20090612083005.56336219.akpm@linux-foundation.org> References: <20090612091002.GA32052@elte.hu> <84144f020906120249y20c32d47y5615a32b3c9950df@mail.gmail.com> <20090612100756.GA25185@elte.hu> <84144f020906120311x7c7dd628s82e3ca9a840f9890@mail.gmail.com> <1244805060.7172.126.camel@pasglop> <1244806440.30512.51.camel@penberg-laptop> <20090612083005.56336219.akpm@linux-foundation.org> Content-Type: text/plain Date: Sat, 13 Jun 2009 07:42:36 +1000 Message-Id: <1244842956.23936.0.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2009-06-12 at 08:30 -0700, Andrew Morton wrote: > On Fri, 12 Jun 2009 14:34:00 +0300 Pekka Enberg wrote: > > > +static gfp_t slab_gfp_mask __read_mostly = __GFP_BITS_MASK & ~__GFP_WAIT; > > It'd be safer and saner to disable __GFP_FS and __GFP_IO as well. Right. That's what my original patch does in fact. I also re-enabled them all together but in that case, it might be better to re-enable FS and IO later, I'll let experts decide. > Having either of those flags set without __GFP_WAIT is a somewhat > self-contradictory thing and there might be code under reclaim which > assumes that __GFP_FS|__GFP_IO implies __GFP_WAIT. > > 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