From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933297AbZFLJgz (ORCPT ); Fri, 12 Jun 2009 05:36:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763517AbZFLJgr (ORCPT ); Fri, 12 Jun 2009 05:36:47 -0400 Received: from gate.crashing.org ([63.228.1.57]:58055 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759538AbZFLJgq (ORCPT ); Fri, 12 Jun 2009 05:36:46 -0400 Subject: Re: [PATCH v2] slab,slub: ignore __GFP_WAIT if we're booting or suspending From: Benjamin Herrenschmidt To: Pekka Enberg Cc: Ingo Molnar , linux-mm@kvack.org, linux-kernel@vger.kernel.org, npiggin@suse.de, akpm@linux-foundation.org, cl@linux-foundation.org, torvalds@linux-foundation.org In-Reply-To: <84144f020906120224v5ef44637pb849fd247eab84ea@mail.gmail.com> References: <20090612091002.GA32052@elte.hu> <1244798515.7172.99.camel@pasglop> <84144f020906120224v5ef44637pb849fd247eab84ea@mail.gmail.com> Content-Type: text/plain Date: Fri, 12 Jun 2009 19:36:29 +1000 Message-Id: <1244799389.7172.110.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 12:24 +0300, Pekka Enberg wrote: > Hi Ben, > > On Fri, Jun 12, 2009 at 12:21 PM, Benjamin > Herrenschmidt wrote: > > I really think we are looking for trouble (and a lot of hidden bugs) by > > trying to "fix" all callers, in addition to making some code like > > vmalloc() more failure prone because it's unconditionally changed from > > GFP_KERNEL to GFP_NOWAIT. > > It's a new API function vmalloc_node_boot() that uses GFP_NOWAIT so I > don't share your concern that it's error prone. But you didn't fix __get_vm_area_caller() which means my ioremap is still broken... Take a break, take a step back, and look at the big picture. Do you really want to find all the needles in the haystack or just make sure you wear gloves when handling the hay ? :-) Cheers, Ben.