Re: [PATCH 07/12] oom: Fix child process iteration properly

From: KAMEZAWA Hiroyuki
Date: Thu Jun 03 2010 - 02:37:55 EST


On Thu, 3 Jun 2010 15:23:50 +0900 (JST)
KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> 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 <oleg@xxxxxxxxxx>
> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/