summaryrefslogtreecommitdiffstats
path: root/security/min_addr.c
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.com>2016-10-07 16:58:57 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-07 18:46:27 -0700
commit862e3073b3eed13f17bd6be6ca6052db15c0b728 (patch)
tree3fd7303c9f3a35984ea72a9e2ccdd9d25ace9bbb /security/min_addr.c
parent7283094ec3db318e87ec9e31cf75f136ac2a4dd3 (diff)
downloadlinux-862e3073b3eed13f17bd6be6ca6052db15c0b728.tar.gz
linux-862e3073b3eed13f17bd6be6ca6052db15c0b728.tar.bz2
linux-862e3073b3eed13f17bd6be6ca6052db15c0b728.zip
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/min_addr.c')
0 files changed, 0 insertions, 0 deletions