public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: Max Krasnyansky <maxk@qualcomm.com>
Cc: mingo@elte.hu, linux-kernel@vger.kernel.org, menage@google.com,
	a.p.zijlstra@chello.nl, vegard.nossum@gmail.com,
	lizf@cn.fujitsu.com
Subject: Re: [PATCH] cpuset: Rework sched domains and CPU hotplug handling (2.6.27-rc1)
Date: Tue, 5 Aug 2008 23:28:56 -0500	[thread overview]
Message-ID: <20080805232856.78dd50f7.pj@sgi.com> (raw)
In-Reply-To: <4899202B.6030303@qualcomm.com>

Max wrote:
> ... the wrong part of my reply ...

Was the right part where you wrote:
> We'd actually be changing more things.

I also don't care that much how much code is changed;
if it must be changed, then change it to what is best,
which may not necessarily be the minimum change.

If an asynchronous sched domain rebuild is needed in
some places, then consider just using it everywhere,
rather than providing two code paths to rebuild, one
sync and one async.

Ask not how we got here; ask where we should be.

In particular, and in this specific case, having the
dual code paths really did make it a little more difficult
for me to understand the code, as evidenced by the back
and forth discussion on how to name the confusingly
similar functions.  Such naming controversies are usually
a sign of code duplication or improper factoring.

That additional difficulty in understanding this code
was a key factor in delaying my review of your code.
I'd look at it, my mind was glaze over, and I'd put
it aside for a few days.  This happened repeatedly.

Fine code is like fine art ... spare, elegant, compelling
in its expression.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.940.382.4214

  reply	other threads:[~2008-08-06  4:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-01 22:59 [PATCH] cpuset: Rework sched domains and CPU hotplug handling (2.6.27-rc1) Max Krasnyansky
2008-08-02 11:39 ` Paul Jackson
2008-08-02 16:32   ` Max Krasnyansky
2008-08-03  3:51     ` Paul Jackson
2008-08-03 18:07       ` Max Krasnyansky
2008-08-04  6:00         ` Paul Jackson
2008-08-04 22:11           ` Max Krasnyansky
2008-08-05  3:56             ` Paul Jackson
2008-08-05 20:30               ` Max Krasnyansky
2008-08-05 23:05                 ` Paul Jackson
2008-08-06  3:24                   ` Max Krasnyansky
2008-08-06  3:29                     ` Paul Jackson
2008-08-06  3:53                       ` Max Krasnyansky
2008-08-06  4:28                         ` Paul Jackson [this message]
2008-08-06  5:03                           ` Max Krasnyansky
2008-08-06  5:46                             ` Paul Jackson
2008-08-06 20:20                               ` Max Krasnyansky
2008-08-06 20:29                                 ` Paul Jackson
2008-08-06 20:30                                   ` Paul Menage
2008-08-06 20:56                                     ` Paul Jackson
2008-08-06 20:36                                   ` Max Krasnyansky

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=20080805232856.78dd50f7.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=maxk@qualcomm.com \
    --cc=menage@google.com \
    --cc=mingo@elte.hu \
    --cc=vegard.nossum@gmail.com \
    /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