From: Oleg Nesterov Date: Tue, 10 Aug 2010 00:18:43 +0000 (-0700) Subject: oom: check PF_KTHREAD instead of !mm to skip kthreads X-Git-Tag: v2.6.36-rc1~467 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=455c0e5fb03b67fa62bd12e3abe3fa484b9960c5;p=pandora-kernel.git oom: check PF_KTHREAD instead of !mm to skip kthreads select_bad_process() thinks a kernel thread can't have ->mm != NULL, this is not true due to use_mm(). Change the code to check PF_KTHREAD. Reviewed-by: KAMEZAWA Hiroyuki Signed-off-by: Oleg Nesterov Signed-off-by: David Rientjes Acked-by: KOSAKI Motohiro Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed