summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2010-08-10 00:18:46 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-10 03:44:56 (GMT)
commitc55db95788a2a55a77f5a3ced1e59578710440b2 (patch)
tree275a0c97bfe408ea926dfe14864e476d719859e9 /Kbuild
parentdd8e8f405ca386c7ce7cbb996ccd985d283b0e03 (diff)
downloadlinux-fsl-qoriq-c55db95788a2a55a77f5a3ced1e59578710440b2.tar.xz
oom: dump_tasks use find_lock_task_mm too
dump_task() should use find_lock_task_mm() too. It is necessary for protecting task-exiting race. dump_tasks() currently filters any task that does not have an attached ->mm since it incorrectly assumes that it must either be in the process of exiting and has detached its memory or that it's a kernel thread; multithreaded tasks may actually have subthreads that have a valid ->mm pointer and thus those threads should actually be displayed. This change finds those threads, if they exist, and emit their information along with the rest of the candidate tasks for kill. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: David Rientjes <rientjes@google.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions