From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754332AbZELNF7 (ORCPT ); Tue, 12 May 2009 09:05:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751889AbZELNFu (ORCPT ); Tue, 12 May 2009 09:05:50 -0400 Received: from cantor.suse.de ([195.135.220.2]:40243 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751860AbZELNFt (ORCPT ); Tue, 12 May 2009 09:05:49 -0400 Date: Tue, 12 May 2009 15:05:46 +0200 From: Nick Piggin To: Jens Axboe Cc: Andrew Morton , David Rientjes , mel@csn.ul.ie, a.p.zijlstra@chello.nl, cl@linux-foundation.org, dave@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, Divy Le Ray Subject: Re: [patch -mmotm] mm: invoke oom killer for __GFP_NOFAIL Message-ID: <20090512130546.GA15793@wotan.suse.de> References: <20090511134038.5cf1ad3b.akpm@linux-foundation.org> <20090512124201.GO4140@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090512124201.GO4140@kernel.dk> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2009 at 02:42:02PM +0200, Jens Axboe wrote: > On Mon, May 11 2009, Andrew Morton wrote: > > On Sat, 9 May 2009 15:46:39 -0700 (PDT) > > David Rientjes wrote: > > > > > The oom killer must be invoked regardless of the order if the allocation > > > is __GFP_NOFAIL, otherwise it will loop forever when reclaim fails to > > > free some memory. > > > > Sigh. We're supposed to be deleting __GFP_NOFAIL. I added it as a way > > of easily finding lame error-handling-challenged callers which need to > > be fixed up. So of course we went and added lots more callers. > > > > y:/usr/src/linux-2.6.30-rc5> grep -rl GFP_NOFAIL . > > ./fs/bio-integrity.c This is no good either, it seems to be in the bio submission path. It needs a mempool or something. It has a dead code "fallback" that returns an error, but I suspect that's not really acceptable.