[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080212204813.GA21650@kroah.com>
Date: Tue, 12 Feb 2008 12:48:13 -0800
From: Greg KH <greg@...ah.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Jeff Garzik <jeff@...zik.org>, David Miller <davem@...emloft.net>,
arjan@...radead.org, sfr@...b.auug.org.au,
linux-kernel@...r.kernel.org, linux-next@...r.kernel.org,
linux-arch@...r.kernel.org, akpm@...ux-foundation.org
Subject: Re: Announce: Linux-next (Or Andrew's dream :-))
On Tue, Feb 12, 2008 at 11:55:45AM -0800, Linus Torvalds wrote:
>
>
> On Tue, 12 Feb 2008, Greg KH wrote:
> >
> > > That's the point.
> >
> > Not it isn't. To quote you a number of years ago:
> > "Linux is evolution, not intelligent design"
>
> Umm. Have you read a lot of books on evolution?
>
> It doesn't sound like you have.
>
> The fact is, evolution often does odd (and "suboptimal") things exactly
> because it does incremental changes that DO NOT BREAK at any point.
Hm, I think we are in violent agreement here :)
> The examples are legion. The mammalian eye has the retina "backwards",
> with the blind spot appearing because the fundmanetal infrastructure (the
> optical nerves) actually being in *front* of the light sensor and needing
> a hole in the retina to get the information (and blood flow) to go to the
> brain!
>
> In other words, exactly *because* evolution requires "bisectability" (any
> non-viable point in between is a dead end by definition) and does things
> incrementally, it doesn't do big flips. It fixes the problems on an
> incremental scale both when it comes to the details and when it comes to
> both "details" (actual protein-coding genes that code directly for some
> expression) and "infrastructure" (homeobox and non-coding genes).
>
> So quite frankly, you're the "intelligent designer" here. You're the one
> who seems to claim that we need those leaps of faith and wild jumps.
No, I might have mistyped previously, but I really do not believe in
this at all.
> > > And simply avoiding cross-subsystem API changes unless there is a major
> > > *MAJOR* reason for them is the obvious thing to do. Simply face the fact
> > > that even in open source there are major reasons to stay with an old
> > > interface even if it's not optimal.
> >
> > I strongly disagree here. We lived with that kset/ktype crap for years,
> > and I finally broke down and cleaned it up, simplifying things, removing
> > code, making the kernel smaller, leaner, and easier for others to change
> > and use in the future. With your statement, such a change should have
> > never taken place as it what we had at the time was "not optimal", but
> > good enough to live with.
>
> You didn't listen at all.
>
> I said that the threshold should be high, not that it should be
> impossible. I also said that we should strive for making it unnecessary to
> have the painful total synchronization points.
I agree with this. But I was reacting to your "there are major reasons
to stay with an old interface..." portion above, while I feel we should
always work to fixe those interfaces as best as possible.
> > But they do happen about once or twice a kernel release, just by virtue
> > of the way things need to happen.
>
> And I violently disagree.
>
> It should not be "once of twice a kernel release".
>
> It should be "once or twice a year" that you hit a flag-day issue. The
> rest of the time you should be able to do it without breakage. It's
> doable. You just HAVEN'T EVEN TRIED, and seem to be actively against even
> doing so.
No, not at all.
I have tried, and successfully done this many times in the past. The
kobject change was one example: add a new function, migrate all users of
a direct pointer over to that function, after that work is all done and
in, change the structure and do the needed work afterward. All is
bisectable completly, with no big "flag day" needed.
Same goes for a lot of USB changes. Hell, we've been slowly moving
toward changing the USB urb callback for _years_ yet, not quite getting
there, but the groundwork is done, making it much simpler and easy for
it to happen. Eventually things will flip over and the eventual patch
for all callback functions will be trivial and easily reviewed and
merged.
In short, I agree that flag days are bad and should be avoided at all
costs, and that slow incremental, bisectable changes are how we evolve
properly. And that we need to always be able to do this kind of work,
and never be stuck with the "can't change an old, internal api" model.
To bring it around to the original topic, -next should help us in
finding these issues out, exactly like -mm is.
If we want to make a new rule of "only merging api or cross-subsystem
changes after everything else", that's wonderful with me, I have no
objection to it at all.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists