diff options
author | Oleg Nesterov <oleg@redhat.com> | 2011-03-14 20:05:30 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-14 13:38:35 -0700 |
commit | dc1b83ab08f1954335692cdcd499f78c94f4c42a (patch) | |
tree | e05f9760a40c2560e500762b13ef81b37f153b9d /kernel/Kconfig.hz | |
parent | 5f40d4209461f23a15d88c6b55993bb8b0fa2670 (diff) | |
download | op-kernel-dev-dc1b83ab08f1954335692cdcd499f78c94f4c42a.zip op-kernel-dev-dc1b83ab08f1954335692cdcd499f78c94f4c42a.tar.gz |
oom: oom_kill_process: fix the child_points logic
oom_kill_process() starts with victim_points == 0. This means that
(most likely) any child has more points and can be killed erroneously.
Also, "children has a different mm" doesn't match the reality, we should
check child->mm != t->mm. This check is not exactly correct if t->mm ==
NULL but this doesn't really matter, oom_kill_task() will kill them
anyway.
Note: "Kill all processes sharing p->mm" in oom_kill_task() is wrong
too.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/Kconfig.hz')
0 files changed, 0 insertions, 0 deletions