mm: oom-kill: Add lmk_kill possible for ULMK

While ULMK is active, prevent OOM for order <= COSTLY_ORDER
pages. No special actions are taken for larger orders.

Change-Id: I4ccba1b71155947569acc3d88ae2027e3b2e0620
Signed-off-by: Patrick Daly <[email protected]>
Signed-off-by: Chris Goldsworthy <[email protected]>
This commit is contained in:
Patrick Daly 2019-02-21 12:55:10 -08:00 • committed by Chris Goldsworthy
commit de77105488
5 changed files with 50 additions and 1 deletions

View file

@ -1407,8 +1407,10 @@ int group_send_sig_info(int sig, struct kernel_siginfo *info,
if (!ret && sig) {
ret = do_send_sig_info(sig, info, p, type);
if (capable(CAP_KILL) && sig == SIGKILL)
if (capable(CAP_KILL) && sig == SIGKILL) {
add_to_oom_reaper(p);
ulmk_update_last_kill();
}
}
return ret;