[PATCH] oom: kthread infinite loop fix
commit5081dde33f7a61d28d9b185cc386f12cb837c7a4
authorNick Piggin <npiggin@suse.de>
Tue, 26 Sep 2006 06:31:32 +0000 (25 23:31 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:49 +0000 (26 08:48 -0700)
treed2e6f39db4005229580f571137a833c1dabfc38b
parentaf5b912435de32fbede08cee949429823ed49781
[PATCH] oom: kthread infinite loop fix

Skip kernel threads, rather than having them return 0 from badness.
Theoretically, badness might truncate all results to 0, thus a kernel thread
might be picked first, causing an infinite loop.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/oom_kill.c