From: Ingo Molnar <mingo@elte.hu>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Alexey Dobriyan <adobriyan@gmail.com>,
linux-kernel@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: fault.c cleanup, what else could it be
Date: Mon, 30 Mar 2009 03:13:55 +0200 [thread overview]
Message-ID: <20090330011355.GA11087@elte.hu> (raw)
In-Reply-To: <20090329234839.GL28946@ZenIV.linux.org.uk>
* Al Viro <viro@ZenIV.linux.org.uk> wrote:
> On Mon, Mar 30, 2009 at 01:24:22AM +0200, Ingo Molnar wrote:
> >
> > * Alexey Dobriyan <adobriyan@gmail.com> wrote:
> >
> > > I have personally stopped sending anything against pure arch/x86/
> > > if there is even a smallest chance it can be prettyfied like this.
> >
> > Before you volunteer reviewing x86 code for us (thanks for that!),
> > may i direct your urgent attention at code in your own area of
> > responsibility - such as fs/proc/base.c:
> >
> > total: 85 errors, 39 warnings, 2 checks, 3147 lines checked
> >
> > I filtered out the relevant ones for you below.
>
> This is precisely what's wrong with your advocacy. I actually
> have no problem with specific instances pointed to by
> checkpatch.pl in this case; when code in question gets touched,
> sure, getting rid of those would be OK. *HOWEVER*, implying that
> this noise should take priority over any real work is bloody
> insane. [...]
There is simply no excuse for ever having let that crap get there
into fs/proc/base.c. There is no excuse for ever letting that crap
grow. The fact that that crap is there is proof of systemic failure
over the years to keep that code clean.
I dont really want to see "real work" done on code that was not
properly and cleanly finished in the first place.
Code cleanliness does matter in the long run: easy crap on the
surface fosters crap deep inside as well. I've yet to see
crappy-looking but picture perfectly designed code. Crap is removed
in layers: you start at the most visible outside layer first and go
down step by step. If you let crap remain on the surface you obscure
the real bugs.
> [...] And replying to mail that questions the usefulness of such
> activity with "shut up, do what you've pretty much called
> pointless and don't come back until you are done"... fie, sir.
Had you taken just a fleeting look at the git log you'd have
discovered that that mail unfairly singled out a cleanup commit
which was the preparatory cleanup to a long series of structural
commits to fault.c:
b319eed: x86, mm: fault.c, simplify kmmio_fault(), cleanup
f8eeb2e: x86, mm: fault.c, update copyrights
cd1b68f: x86, mm: fault.c, give another attempt at prefetch handing before SIGBUS
7c178a2: x86, mm: fault.c, remove #ifdef from fault_in_kernel_space()
d951734: x86, mm: rename TASK_SIZE64 => TASK_SIZE_MAX
c3731c6: x86, mm: fault.c, remove #ifdef from do_page_fault()
1cc9954: x86, mm: fault.c, unify oops handling
8f76614: x86, mm: fault.c, unify oops printing
f2f13a8: x86, mm: fault.c, reorder functions
b180181: x86, mm, kprobes: fault.c, simplify notify_page_fault()
b814d41: x86, mm: fault.c, simplify kmmio_fault()
121d5d0: x86, mm: fault.c, enable PF_RSVD checks on 32-bit too
8c938f9: x86, mm: fault.c, factor out the vm86 fault check
107a036: x86, mm: fault.c, refactor/simplify the is_prefetch() code
2d4a716: x86, mm: fault.c cleanup
And that's really the expected upstream behavior: get code clean
first, modify it with "real work" after that.
Ingo
next prev parent reply other threads:[~2009-03-30 1:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-29 17:56 fault.c cleanup, what else could it be Alexey Dobriyan
2009-03-29 20:39 ` David Miller
2009-03-29 23:24 ` Ingo Molnar
2009-03-29 23:48 ` Al Viro
2009-03-30 1:13 ` Ingo Molnar [this message]
2009-03-30 1:33 ` Al Viro
2009-03-30 1:49 ` Ingo Molnar
2009-03-30 4:25 ` Al Viro
2009-03-30 22:16 ` Alexey Dobriyan
2009-03-30 0:29 ` Alexey Dobriyan
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=20090330011355.GA11087@elte.hu \
--to=mingo@elte.hu \
--cc=adobriyan@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=viro@ZenIV.linux.org.uk \
/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