Messages in this thread | | | Date | Wed, 19 Nov 2008 11:56:59 -0800 (PST) | From | David Rientjes <> | 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).
| |