Revert "staging: android: lowmemorykiller: Remove bitrotted codepath"

This reverts commit d3cf24cfefda01d1dfcafd63fe1f6e6179908878.
This commit is contained in:
Rebecca Schultz Zavin
2010-08-27 14:44:14 -07:00
committed by Colin Cross
parent c7c9f42ea0
commit abe997b06f

View File

@@ -164,6 +164,12 @@ static int lowmem_shrink(struct shrinker *s, 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);