mm, oom: get rid of signal_struct::oom_victims
authorMichal Hocko <mhocko@suse.com>
Sat, 10 Sep 2016 10:34:09 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:09 +0000 (20:34 +1000)
commit0b5627ed2f5861ca0994d4337734e5912963ede7
tree65b2986c3f53577ded10dd5415ea58cfcfea2f69
parent9aa5090b0d655ef7f0d225acc3bb066d8b4f4e02
mm, oom: get rid of signal_struct::oom_victims

After "oom: keep mm of the killed task available" we can safely detect an
oom victim by checking task->signal->oom_mm so we do not need the
signal_struct counter anymore so let's get rid of it.

This alone wouldn't be sufficient for nommu archs because exit_oom_victim
doesn't hide the process from the oom killer anymore.  We can, however,
mark the mm with a MMF flag in __mmput.  We can reuse MMF_OOM_REAPED and
rename it to a more generic MMF_OOM_SKIP.

Link: http://lkml.kernel.org/r/1472119394-11342-6-git-send-email-mhocko@kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/oom.h
include/linux/sched.h
kernel/fork.c
mm/oom_kill.c
This page took 0.026563 seconds and 5 git commands to generate.