Re: [patch 01/12] mm: oom_kill: remove unnecessary locking in oom_enable()

From: David Rientjes
Date: Thu Mar 26 2015 - 15:30:46 EST


On Thu, 26 Mar 2015, Michal Hocko wrote:

> I am wrong here! pagefault_out_of_memory takes the lock and so the whole
> mem_cgroup_out_of_memory is called under the same lock.

If all userspace processes are frozen by the time oom_killer_disable() is
called, then there shouldn't be any race with the android lmk calling
mark_tsk_oom_victim() either, so I assume that you're acking this patch?
--
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/