]> git.baikalelectronics.ru Git - kernel.git/commit
oom: kill the insufficient and no longer needed PT_TRACE_EXIT check
authorOleg Nesterov <oleg@redhat.com>
Sat, 13 Dec 2014 00:56:27 +0000 (16:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:49 +0000 (12:42 -0800)
commite42cd456aaa429e8c6e89b17a0fb4aa1a2a59c9d
treeec4d85627deeffe0452197d2cf9c372fa586bca8
parent93de52fe15f52fe9e3df24bcc8d06d1b1b1efaa4
oom: kill the insufficient and no longer needed PT_TRACE_EXIT check

After the previous patch we can remove the PT_TRACE_EXIT check in
oom_scan_process_thread(), it was added to handle the case when the
coredumping was "frozen" by ptrace, but it doesn't really work.  If
nothing else, we would need to check all threads which could share the
same ->mm to make it more or less correct.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c