From: Ingo Molnar <mingo@elte.hu>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Dave Jones <davej@redhat.com>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Mike Galbraith <efault@gmx.de>,
Linus Torvalds <torvalds@linux-foundation.org>,
Dave Airlie <airlied@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [rfc] disable scheduler warnings during oopses.
Date: Fri, 23 Dec 2011 14:42:25 +0100 [thread overview]
Message-ID: <20111223134225.GA21382@elte.hu> (raw)
In-Reply-To: <1324641960.24803.50.camel@twins>
* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> On Fri, 2011-12-23 at 11:19 +0100, Ingo Molnar wrote:
> > * Dave Jones <davej@redhat.com> wrote:
> >
> > > The panic-on-framebuffer code seems to cause a schedule
> > > to occur during an oops. This causes a bunch of extra
> > > spew as can be seen in https://bugzilla.redhat.com/attachment.cgi?id=549230
> > >
> > > Would this (untested) patch be sufficient here, or does the drm
> > > code need rearchitecting to not perform allocations during panic ?
> > >
> > > Signed-off-by: Dave Jones <davej@redhat.com>
> > >
> > > diff --git a/kernel/sched.c b/kernel/sched.c
> > > index d6b149c..627f788 100644
> > > --- a/kernel/sched.c
> > > +++ b/kernel/sched.c
> > > @@ -4321,6 +4321,9 @@ static noinline void __schedule_bug(struct task_struct *prev)
> > > {
> > > struct pt_regs *regs = get_irq_regs();
> > >
> > > + if (oops_in_progress)
> > > + return;
> > > +
> > > printk(KERN_ERR "BUG: scheduling while atomic: %s/%d/0x%08x\n",
> > > prev->comm, prev->pid, preempt_count());
> > >
> >
> > Doing that makes sense - if an oops in going on we don't
> > want to produce recursive messages. Note that scheduler code
> > has been moved to kernel/sched/, so i've changed the patch
> > accordingly.
>
> Urgh I would actually argue against merging this. What the KSM
> console does is horridly wrong, and simply papering over it
> doesn't help its cause. Its up there with USB-Serial console
> on wrongness.
Well, i agree in principle, but not escallating an already bad
scenario would be a basic robustness rule. We do skip certain
things on oops_in_progress already.
Linus, Andrew, what would be your preference?
Thanks,
Ingo
next prev parent reply other threads:[~2011-12-23 13:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 21:39 [rfc] disable scheduler warnings during oopses Dave Jones
2011-12-23 10:19 ` Ingo Molnar
2011-12-23 12:06 ` Peter Zijlstra
2011-12-23 13:42 ` Ingo Molnar [this message]
2011-12-23 13:18 ` [tip:sched/core] sched: Disable " tip-bot for Dave Jones
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=20111223134225.GA21382@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=airlied@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=davej@redhat.com \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox