From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 1/5] mm: Add __GFP_NO_OOM_KILL flag Date: Tue, 12 May 2009 10:50:59 -0700 Message-ID: <20090512105059.30fb93c2.akpm@linux-foundation.org> References: <200905120128.16780.rjw@sisk.pl> <20090511171111.9d74e4c0.akpm@linux-foundation.org> <200905121852.37224.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200905121852.37224.rjw@sisk.pl> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: "Rafael J. Wysocki" Cc: kernel-testers@vger.kernel.org, mel@csn.ul.ie, rientjes@google.com, linux-kernel@vger.kernel.org, alan-jenkins@tuffmail.co.uk, jens.axboe@oracle.com, linux-pm@lists.linux-foundation.org, fengguang.wu@intel.com, torvalds@linux-foundation.org On Tue, 12 May 2009 18:52:36 +0200 "Rafael J. Wysocki" wrote: > Well, what about the following? It has the virtue of simplicity. > +static inline void disable_oom_killer(void) > +{ > + oom_killer_disabled = true; > +} > + > +static inline void enable_oom_killer(void) > +{ > + oom_killer_disabled = false; > +} I'll change these to oom_killer_disable() and oom_killer_enable(), OK?