On Tue, Oct 03, 2017 at 12:49:39PM +0200, Michal Hocko wrote:
> On Wed 27-09-17 14:09:33, Roman Gushchin wrote:
> > Implement mem_cgroup_scan_tasks() functionality for the root
> > memory cgroup to use this function for looking for a OOM victim
> > task in the root memory cgroup by the cgroup-ware OOM killer.
> > 
> > The root memory cgroup should be treated as a leaf cgroup,
> > so only tasks which are directly belonging to the root cgroup
> > should be iterated over.
> 
> I would only add that this patch doesn't introduce any functionally
> visible change because we never trigger oom killer with the root memcg
> as the root of the hierarchy. So this is just a preparatory work for
> later changes.

Sure, thanks!

> 
> > Signed-off-by: Roman Gushchin <g...@fb.com>
> > Cc: Michal Hocko <mho...@kernel.org>
> > Cc: Vladimir Davydov <vdavydov....@gmail.com>
> > Cc: Johannes Weiner <han...@cmpxchg.org>
> > Cc: Tetsuo Handa <penguin-ker...@i-love.sakura.ne.jp>
> > Cc: David Rientjes <rient...@google.com>
> > Cc: Andrew Morton <a...@linux-foundation.org>
> > Cc: Tejun Heo <t...@kernel.org>
> > Cc: kernel-t...@fb.com
> > Cc: cgro...@vger.kernel.org
> > Cc: linux-...@vger.kernel.org
> > Cc: linux-kernel@vger.kernel.org
> > Cc: linux...@kvack.org
> 
> Acked-by: Michal Hocko <mho...@suse.com>

Reply via email to