From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with SMTP id 8E5576B01EE for ; Thu, 1 Apr 2010 20:45:03 -0400 (EDT) Received: from m4.gw.fujitsu.co.jp ([10.0.50.74]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o320j0rB019331 for (envelope-from kamezawa.hiroyu@jp.fujitsu.com); Fri, 2 Apr 2010 09:45:00 +0900 Received: from smail (m4 [127.0.0.1]) by outgoing.m4.gw.fujitsu.co.jp (Postfix) with ESMTP id DD7FB45DE6F for ; Fri, 2 Apr 2010 09:44:59 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (s4.gw.fujitsu.co.jp [10.0.50.94]) by m4.gw.fujitsu.co.jp (Postfix) with ESMTP id B3BA945DE60 for ; Fri, 2 Apr 2010 09:44:59 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id 911ABE18003 for ; Fri, 2 Apr 2010 09:44:59 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id 37157E18005 for ; Fri, 2 Apr 2010 09:44:59 +0900 (JST) Date: Fri, 2 Apr 2010 09:41:17 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [patch -mm 3/5] oom: avoid sending exiting tasks a SIGKILL Message-Id: <20100402094117.7b3856fa.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: David Rientjes Cc: Andrew Morton , Oleg Nesterov , KOSAKI Motohiro , Rik van Riel , linux-mm@kvack.org List-ID: On Thu, 1 Apr 2010 12:44:34 -0700 (PDT) David Rientjes wrote: > It's unnecessary to SIGKILL a task that is already PF_EXITING and can > actually cause a NULL pointer dereference of the sighand if it has > already been detached. Instead, simply set TIF_MEMDIE so it has access > to memory reserves and can quickly exit as the comment implies. > > Signed-off-by: David Rientjes Reviewed-by: KAMEZAWA Hiroyuki -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org