mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
Revert "staging: android: lowmemorykiller: Remove bitrotted codepath"
This reverts commit d3cf24cfefda01d1dfcafd63fe1f6e6179908878.
This commit is contained in:
committed by
Colin Cross
parent
c7c9f42ea0
commit
abe997b06f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user