Re: [patch] oom: print triggering task's cpuset and mems allowed

David Rientjes
2008-11-19T19:57:19Z

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).