From: Andrew Morton <akpm@linux-foundation.org>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: chenjie6@huawei.com, lizefan@huawei.com, mhocko@suse.com,
rientjes@google.com, stable@vger.kernel.org,
Mark Brown <broonie@kernel.org>
Subject: Re: + oom-kill-init-lead-panic.patch added to -mm tree
Date: Thu, 3 Dec 2015 18:16:41 -0800 [thread overview]
Message-ID: <20151203181641.eba5fbd7.akpm@linux-foundation.org> (raw)
In-Reply-To: <1449194840.30642.74.camel@decadent.org.uk>
On Fri, 04 Dec 2015 02:07:20 +0000 Ben Hutchings <ben@decadent.org.uk> wrote:
> On Wed, 2015-12-02 at 15:07 -0800, akpm@linux-foundation.org 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.
>
argh, crap, yes, thanks. And I just injected this into linux-next.
Mark, could you please add this?
From: Andrew Morton <akpm@linux-foundation.org>
Subject: oom-kill-init-lead-panic-fix
fix inverted test, per Ben
Cc: Chen Jie <chenjie6@huawei.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/oom_kill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN mm/oom_kill.c~oom-kill-init-lead-panic-fix mm/oom_kill.c
--- a/mm/oom_kill.c~oom-kill-init-lead-panic-fix
+++ a/mm/oom_kill.c
@@ -608,7 +608,7 @@ void oom_kill_process(struct oom_control
continue;
if (unlikely(p->flags & PF_KTHREAD))
continue;
- if (!is_global_init(p))
+ if (is_global_init(p))
continue;
if (p->signal->oom_score_adj == OOM_SCORE_ADJ_MIN)
continue;
_
next prev parent reply other threads:[~2015-12-04 2:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 23:07 + oom-kill-init-lead-panic.patch added to -mm tree akpm
2015-12-04 2:07 ` Ben Hutchings
2015-12-04 2:16 ` Andrew Morton [this message]
2015-12-04 10:04 ` Mark Brown
2015-12-04 9:43 ` Michal Hocko
-- strict thread matches above, loose matches on Subject: below --
2015-12-02 23:07 akpm
2015-12-02 23:30 akpm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151203181641.eba5fbd7.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ben@decadent.org.uk \
--cc=broonie@kernel.org \
--cc=chenjie6@huawei.com \
--cc=lizefan@huawei.com \
--cc=mhocko@suse.com \
--cc=rientjes@google.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.