aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2015-11-05 18:48:26 -0800
committerLinus Torvalds <[email protected]>2015-11-05 19:34:48 -0800
commit4d7b3394f76ed72cfdec23ca5571dbab6ec41793 (patch)
treec32212a9df243b5e96b694f8cb9abd51138e9b5c /tools/perf/scripts/python/Perf-Trace-Util
parentc319025a6c79e532d862e3a0b9506ba316a4d13a (diff)
mm/oom_kill: fix the wrong task->mm == mm checks in oom_kill_process()
Both "child->mm == mm" and "p->mm != mm" checks in oom_kill_process() are wrong. task->mm can be NULL if the task is the exited group leader. This means in particular that "kill sharing same memory" loop can miss a process with a zombie leader which uses the same ->mm. Note: the process_has_mm(child, p->mm) check is still not 100% correct, p->mm can be NULL too. This is minor, but probably deserves a fix or a comment anyway. [[email protected]: document process_shares_mm() a bit] Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: David Rientjes <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Tetsuo Handa <[email protected]> Cc: Kyle Walker <[email protected]> Cc: Stanislav Kozina <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions