From: David Rientjes Date: Tue, 10 Aug 2010 00:18:47 +0000 (-0700) Subject: oom: dump_tasks use find_lock_task_mm too fix X-Git-Tag: v2.6.36-rc1~462 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c81fac5cb8c92b8b4795ac250a46c7514d1fce06;p=pandora-kernel.git oom: dump_tasks use find_lock_task_mm too fix When find_lock_task_mm() returns a thread other than p in dump_tasks(), its name should be displayed instead. This is the thread that will be targeted by the oom killer, not its mm-less parent. This also allows us to safely dereference task->comm without needing get_task_comm(). While we're here, remove the cast on task_cpu(task) as Andrew suggested. Signed-off-by: David Rientjes Cc: KOSAKI Motohiro Cc: Balbir Singh Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed