From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756112AbZELR6Q (ORCPT ); Tue, 12 May 2009 13:58:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754052AbZELR56 (ORCPT ); Tue, 12 May 2009 13:57:58 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:49764 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754023AbZELR55 (ORCPT ); Tue, 12 May 2009 13:57:57 -0400 Date: Tue, 12 May 2009 10:50:59 -0700 From: Andrew Morton To: "Rafael J. Wysocki" Cc: rientjes@google.com, fengguang.wu@intel.com, linux-pm@lists.linux-foundation.org, pavel@ucw.cz, torvalds@linux-foundation.org, jens.axboe@oracle.com, alan-jenkins@tuffmail.co.uk, linux-kernel@vger.kernel.org, kernel-testers@vger.kernel.org, mel@csn.ul.ie Subject: Re: [PATCH 1/5] mm: Add __GFP_NO_OOM_KILL flag Message-Id: <20090512105059.30fb93c2.akpm@linux-foundation.org> In-Reply-To: <200905121852.37224.rjw@sisk.pl> References: <200905120128.16780.rjw@sisk.pl> <20090511171111.9d74e4c0.akpm@linux-foundation.org> <200905121852.37224.rjw@sisk.pl> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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?