From: Robert S Peterson <rpeterso@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Anton Altaparmakov <aia21@cam.ac.uk>,
Andrew Morton <akpm@osdl.org>,
fs-devel mailing list <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH] loop.c to use write ops for fs requiring special locking
Date: Wed, 29 Mar 2006 18:10:11 -0600 [thread overview]
Message-ID: <1143677411.26193.43.camel@technetium.msp.redhat.com> (raw)
In-Reply-To: <20060329090503.GA7940@infradead.org>
On Wed, 2006-03-29 at 10:05 +0100, Christoph Hellwig wrote:
> adding flags adds special cases. in this particular case it adds a special
> case to hack around a leaking abstraction. the right thing is to fix that
> leaky abstraction as I said in my previous mail. please go ahead and add
> a proper abstraction at the file operation level that
> gets rid of this leaky abstraction instead of adding a kludge ontop of an
> existing one.
I considered doing this, but as I said, it would require the underlying
fs to use its own versions of 3,4,5, and 6, thus bypassing a great deal
of vfs. Replacing 3,4,5 and 6 is certainly an option, but why change
200 lines of code when a problem can simply be fixed by 1 line of
code? That seems like exposing a lot of people to a lot of unnecessary
risk to me. I just can't justify replacing my car's entire engine
because one spark plug is misfiring.
loop.c already has the capability to use the write method rather than
the prepare_write/commit_write method. So what is so wrong with giving
the underlying fs the ability to decide which with a flag?
My patch already received a thumbs up from Anton Altaparmakov, and I've
discussed the matter with Heinz M. as well, both of whom have changed
loop.c.
One flag does not make the kernel "unmaintainable." I strongly believe
that the "right thing to do" in this case is to add this constant.
> such crap might be acceptable inside redhat, but in kernel land it never
> was so this never would be even considered an option.
Christoph, I would have hoped that a man of your obvious intelligence
would not resort to name calling, especially in the open-source
Community (with a capital C). I expected more from you.
next prev parent reply other threads:[~2006-03-30 0:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-27 21:52 [PATCH] loop.c to use write ops for fs requiring special locking Robert S Peterson
2006-03-28 0:44 ` Andrew Morton
2006-03-28 15:33 ` Robert S Peterson
2006-03-28 19:27 ` Andrew Morton
2006-03-28 14:40 ` Christoph Hellwig
2006-03-28 15:59 ` Robert S Peterson
2006-03-29 9:05 ` Christoph Hellwig
2006-03-30 0:10 ` Robert S Peterson [this message]
2006-03-30 14:15 ` Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2006-03-01 16:48 [patch] " Robert S Peterson
2006-03-01 22:09 ` Andrew Morton
2006-03-02 10:16 ` Anton Altaparmakov
2006-03-10 23:04 ` Robert S Peterson
2006-03-10 23:13 ` Andrew Morton
2006-03-11 0:36 ` Anton Altaparmakov
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=1143677411.26193.43.camel@technetium.msp.redhat.com \
--to=rpeterso@redhat.com \
--cc=aia21@cam.ac.uk \
--cc=akpm@osdl.org \
--cc=hch@infradead.org \
--cc=linux-fsdevel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).