Messages in this thread |  | | Date | Wed, 4 Dec 2013 16:42:47 -0800 (PST) | From | David Rientjes <> | Subject | Re: [PATCH v2 4/4] oom_kill: add rcu_read_lock() into find_lock_task_mm() |
| |
On Wed, 4 Dec 2013, Oleg Nesterov wrote:
> find_lock_task_mm() expects it is called under rcu or tasklist lock, > but it seems that at least oom_unkillable_task()->task_in_mem_cgroup() > and mem_cgroup_out_of_memory()->oom_badness() can call it lockless. > > Perhaps we could fix the callers, but this patch simply adds rcu lock > into find_lock_task_mm(). This also allows to simplify a bit one of its > callers, oom_kill_process(). > > Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
|  |