]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: android: lowmemorykiller: Remove bitrotted codepath
authorSan Mehat <san@google.com>
Thu, 6 May 2010 22:43:46 +0000 (15:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Nov 2011 12:05:32 +0000 (21:05 +0900)
Now that we're murder-synchronous, this code path will never be
called (and if it does, it doesn't tell us anything useful other
than we killed a task that was already being killed by somebody
else but hadn't gotten its' signal yet)

Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/lowmemorykiller.c

index 4523093767d4c321c39f4660fd7d1ac7658885af..cf79eb9677fe70f9094d61a744f51ed8f8dc5204 100644 (file)
@@ -167,12 +167,6 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
                             p->pid, p->comm, oom_adj, tasksize);
        }
        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);