From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id 4418A6B0222 for ; Tue, 1 Jun 2010 03:40:17 -0400 (EDT) Received: from m5.gw.fujitsu.co.jp ([10.0.50.75]) by fgwmail6.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o517eFj8013270 for (envelope-from kosaki.motohiro@jp.fujitsu.com); Tue, 1 Jun 2010 16:40:15 +0900 Received: from smail (m5 [127.0.0.1]) by outgoing.m5.gw.fujitsu.co.jp (Postfix) with ESMTP id E2B7B45DE52 for ; Tue, 1 Jun 2010 16:40:14 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (s5.gw.fujitsu.co.jp [10.0.50.95]) by m5.gw.fujitsu.co.jp (Postfix) with ESMTP id B5F3A45DE51 for ; Tue, 1 Jun 2010 16:40:14 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id 9A6171DB8038 for ; Tue, 1 Jun 2010 16:40:14 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id EDB7EE0801F for ; Tue, 1 Jun 2010 16:40:10 +0900 (JST) From: KOSAKI Motohiro Subject: Re: [patch -mm 12/18] oom: remove unnecessary code and cleanup In-Reply-To: References: Message-Id: <20100601163954.246F.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 1 Jun 2010 16:40:10 +0900 (JST) Sender: owner-linux-mm@kvack.org To: David Rientjes Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , Rik van Riel , Nick Piggin , Oleg Nesterov , KAMEZAWA Hiroyuki , Balbir Singh , linux-mm@kvack.org List-ID: > Remove the redundancy in __oom_kill_task() since: > > - init can never be passed to this function: it will never be PF_EXITING > or selectable from select_bad_process(), and > > - it will never be passed a task from oom_kill_task() without an ->mm > and we're unconcerned about detachment from exiting tasks, there's no > reason to protect them against SIGKILL or access to memory reserves. > > Also moves the kernel log message to a higher level since the verbosity is > not always emitted here; we need not print an error message if an exiting > task is given a longer timeslice. > > Reviewed-by: KAMEZAWA Hiroyuki > Reviewed-by: KOSAKI Motohiro > Signed-off-by: David Rientjes need respin. -- 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