From: Chad Goodman Date: Mon, 10 Dec 2012 06:06:09 +0000 (-0800) Subject: LOWMEMORYKILLER: Don't try to kill the same process over and over X-Git-Url: https://ziggy471.com/git/gitweb.cgi?p=ziggy471-sgn2-jb.git;a=commitdiff;h=c2e1f37510271a31d99f408c873d36951a5a6a8b LOWMEMORYKILLER: Don't try to kill the same process over and over Signed-off-by: Ziggy --- --- a/drivers/staging/android/lowmemorykiller.c +++ b/drivers/staging/android/lowmemorykiller.c @@ -303,6 +303,12 @@ static int lowmem_shrink(struct shrinker } #else if (selected) { + if (fatal_signal_pending(selected)) { + pr_warning("process %d is suffering a slow death\n", + selected->pid); + read_unlock(&tasklist_lock); + return rem; + } lowmem_print(1, "send sigkill to %d (%s), adj %d, size %d\n", selected->pid, selected->comm, selected_oom_adj, selected_tasksize);