diff options
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/oom_kill.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 7923f10df..50e1a3f00 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -642,6 +642,8 @@ void oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order, continue; if (unlikely(p->flags & PF_KTHREAD)) continue; + if (is_global_init(p)) + continue; if (p->signal->oom_score_adj == OOM_SCORE_ADJ_MIN) continue; do_send_sig_info(SIGKILL, SEND_SIG_FORCED, p, true); |
