From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992669AbXDTMmK (ORCPT ); Fri, 20 Apr 2007 08:42:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2992690AbXDTMmK (ORCPT ); Fri, 20 Apr 2007 08:42:10 -0400 Received: from kanga.kvack.org ([66.96.29.28]:48175 "EHLO kanga.kvack.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992669AbXDTMmK (ORCPT ); Fri, 20 Apr 2007 08:42:10 -0400 Date: Fri, 20 Apr 2007 08:41:57 -0400 From: Benjamin LaHaise To: Yasunori Goto Cc: Andrew Morton , Christoph Lameter , Linux Kernel ML , Larry Woodman Subject: Re: [PATCH] Make new setting of panic_on_oom Message-ID: <20070420124157.GA21709@kvack.org> References: <20070420202752.0E69.Y-GOTO@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070420202752.0E69.Y-GOTO@jp.fujitsu.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2007 at 08:43:56PM +0900, Yasunori Goto wrote: > > The current panic_on_oom may not work if there is a process using > cpusets/mempolicy, because other nodes' memory may still free. > But some people want failover by panic ASAP even if they are used. > This patch makes new setting for its request. > > This is not tested yet. But it would work. > read_lock(&tasklist_lock); > > + if (sysctl_panic_on_oom == 2) > + panic("out of memory. Compulsory panic_on_oom is selected.\n"); > + Wouldn't it be safer to put the panic before the read_lock()? -ben -- "Time is of no importance, Mr. President, only life is important." Don't Email: .