[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0811191156450.20995@chino.kir.corp.google.com>
Date: Wed, 19 Nov 2008 11:56:59 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: Li Zefan <lizf@...fujitsu.com>
cc: Andrew Morton <akpm@...ux-foundation.org>, menage@...gle.com,
linux-kernel@...r.kernel.org
Subject: Re: [patch] oom: print triggering task's cpuset and mems allowed
On Wed, 19 Nov 2008, Li Zefan wrote:
> But none of the callers of this function holds task_lock nor rcu_read_lock,
> they hold tasklist_lock. Have you confirmed this is ok? It seems racy that
> the task may be moved to another cgroup and the original cgroup gets removed.
>
It needs task_lock(current).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists