mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@suse.de>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andi Kleen <andi@firstfloor.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [rfc] x86: optimise page fault path a little
Date: Fri, 14 Nov 2008 02:16:10 +0100	[thread overview]
Message-ID: <20081114011610.GA5063@wotan.suse.de> (raw)
In-Reply-To: <20081113160633.GA13095@elte.hu>

On Thu, Nov 13, 2008 at 05:06:33PM +0100, Ingo Molnar wrote:
> 
> * Nick Piggin <npiggin@suse.de> wrote:
> 
> > > 32-bit should use oops_begin() too. Solves the previous comment as 
> > > well.
> > > 
> > > > +#ifdef CONFIG_X86_32
> > > > +	die("Oops", regs, error_code);
> > > > +	bust_spinlocks(0);
> > > > +	do_exit(SIGKILL);
> > > > +#else
> > > > +	if (__die("Oops", regs, error_code))
> > > > +		regs = NULL;
> > > > +	/* Executive summary in case the body of the oops scrolled away */
> > > > +	printk(KERN_EMERG "CR2: %016lx\n", address);
> > > > +	oops_end(flags, regs, SIGKILL);
> > > > +#endif
> > > 
> > > this difference seems unnecessary too - 32-bit should use oops_end() 
> > > too.
> > 
> > Probably all 3 good comments, but I didn't want to be tempted into 
> > changing behaviour (modulo adding bugs). Easy to merge them up in a 
> > subsequent patch, however...
> 
> please do feel tempted to clean this code up - and if it changes 
> behavior, split it up into smaller steps. The patch is already quite 
> large with a flux of 430 lines:
> 
>  1 file changed, 251 insertions(+), 188 deletions(-)
> 
> ... your primary goal is faster code, we also want cleaner code. I 
> think we can meet in the middle, have faster _and_ cleaner code, and 
> it's a done deal ;)

I might. But the flux is "supposed" to just be moving things around so
it compiles better. Any behaviour change should be a bug.

So I definitely won't add any of these types of cleanups in the same
patch. And with or without cleanups, the patch should stand on its own
to get merged -- if it's good, it's good; if not, not :)
 
That, and, I don't really know the subtlties of this code or what
made it so tricky that such a cleanup wasn't done when merging the
two files.

  reply	other threads:[~2008-11-14  1:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-13  7:28 Nick Piggin
2008-11-13  7:41 ` Ingo Molnar
2008-11-13  7:50   ` Nick Piggin
2008-11-13  8:02     ` Ingo Molnar
2008-11-14  1:22       ` Nick Piggin
2008-11-13 16:06     ` Ingo Molnar
2008-11-14  1:16       ` Nick Piggin [this message]
2008-11-13  8:35   ` Andi Kleen
2008-11-13 16:00 ` Linus Torvalds
2008-11-14  1:58   ` Nick Piggin
2008-11-14  2:07     ` Linus Torvalds
2008-11-14  2:43       ` Nick Piggin
2008-11-14  3:18         ` Linus Torvalds
2008-11-14  3:30           ` Nick Piggin
2008-11-14  4:44             ` Linus Torvalds

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=20081114011610.GA5063@wotan.suse.de \
    --to=npiggin@suse.de \
    --cc=andi@firstfloor.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --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

all inboxes | Powered by JetHome®