Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933490Ab0FCGhv (ORCPT ); Thu, 3 Jun 2010 02:37:51 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:39802 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933291Ab0FCGhr (ORCPT ); Thu, 3 Jun 2010 02:37:47 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Thu, 3 Jun 2010 15:33:18 +0900 From: KAMEZAWA Hiroyuki To: KOSAKI Motohiro Cc: "Luis Claudio R. Goncalves" , LKML , linux-mm , Oleg Nesterov , David Rientjes , Andrew Morton , Nick Piggin 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> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 3.0.2 (GTK+ 2.10.14; i686-pc-mingw32) 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 Content-Length: 766 Lines: 20 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/