On Fri 04-12-15 02:07:20, Ben Hutchings wrote: > On Wed, 2015-12-02 at 15:07 -0800, akpm@xxxxxxxxxxxxxxxxxxxx wrote: > > The patch titled > > Subject: mm/oom_kill.c: avoid killing init > > has been added to the -mm tree. Its filename is > > oom-kill-init-lead-panic.patch > [...] > > --- a/mm/oom_kill.c~oom-kill-init-lead-panic > > +++ a/mm/oom_kill.c > > @@ -608,6 +608,8 @@ void oom_kill_process(struct oom_control > > continue; > > if (unlikely(p->flags & PF_KTHREAD)) > > continue; > > + if (!is_global_init(p)) > > + continue; > [...] > > It looks like this has been forward-ported from an earlier version, > where the conditions were written as: > > if (A && B && ....) > do_send_sig_info(...); > > Since they are now written as 'if (!A) continue', the '!' needs to be > dropped from this one. Already the first submission [1] I am aware of had it like this. I should have noticed that. Slaps self. Sorry about that! [1] http://lkml.kernel.org/r/1449037856-23990-1-git-send-email-chenjie6%40huawei.com -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html