From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id 9240A6B01E0 for ; Thu, 3 Jun 2010 02:37:43 -0400 (EDT) Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o536bf4r014891 for (envelope-from kamezawa.hiroyu@jp.fujitsu.com); Thu, 3 Jun 2010 15:37:41 +0900 Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 3CB1945DE57 for ; Thu, 3 Jun 2010 15:37:41 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 1197F45DE51 for ; Thu, 3 Jun 2010 15:37:41 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id D3D7D1DB803E for ; Thu, 3 Jun 2010 15:37:40 +0900 (JST) Received: from ml14.s.css.fujitsu.com (ml14.s.css.fujitsu.com [10.249.87.104]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 844B01DB8038 for ; Thu, 3 Jun 2010 15:37:40 +0900 (JST) Date: Thu, 3 Jun 2010 15:33:18 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCH 07/12] oom: Fix child process iteration properly Message-Id: <20100603153318.ebf7972c.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20100603152304.725C.A69D9226@jp.fujitsu.com> References: <20100603135106.7247.A69D9226@jp.fujitsu.com> <20100603152304.725C.A69D9226@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: "Luis Claudio R. Goncalves" , LKML , linux-mm , Oleg Nesterov , David Rientjes , Andrew Morton , Nick Piggin List-ID: On Thu, 3 Jun 2010 15:23:50 +0900 (JST) KOSAKI Motohiro wrote: > Oleg pointed out that current oom child process iterating logic is wrong. > > > list_for_each_entry(p->children) can only see the tasks forked > > by p, it can't see other children forked by its sub-threads. > > This patch fixes it. > > Reported-by: Oleg Nesterov > Signed-off-by: KOSAKI Motohiro 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