LOWMEMORYKILLER: Don't try to kill the same process over and over

file:1d83e090c18f957ab899ca3303930cf66395132f -> file:d16ff0cc255918aab06f3374bda2acdd8fdc4236
--- a/drivers/staging/android/lowmemorykiller.c
+++ b/drivers/staging/android/lowmemorykiller.c
@@ -298,6 +298,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);