mm: reap tasks only killed by low memory killer

Reap tasks that are killed by ulmk only.

Change-Id: I4af044b3b8fb5fe1dcef6bac70c475cf949d0505
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
[isaacm@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Charan Teja Reddy 2019-12-11 12:34:02 +05:30 • committed by Isaac J. Manjarres
commit ba60e2b9b8

View file

@ -1409,7 +1409,8 @@ int group_send_sig_info(int sig, struct kernel_siginfo *info,
check_panic_on_foreground_kill(p);
ret = do_send_sig_info(sig, info, p, type);
if (capable(CAP_KILL) && sig == SIGKILL)
add_to_oom_reaper(p);
if (!strcmp(current->comm, ULMK_MAGIC))
add_to_oom_reaper(p);
}
return ret;