From: Jamie Lokier <jamie@shareable.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>, Nick Piggin <npiggin@suse.de>,
Jan Kara <jack@suse.cz>,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] direct I/O fallback sync simplification
Date: Wed, 30 Sep 2009 19:13:32 +0100 [thread overview]
Message-ID: <20090930181332.GC2515@shareable.org> (raw)
In-Reply-To: <20090930120504.GA23766@lst.de>
Christoph Hellwig wrote:
> On Tue, Sep 29, 2009 at 10:30:02PM +0100, Jamie Lokier wrote:
> > What I'm suggesting is that there is no need to commit the data to the
> > disk, and sometimes it's an unwanted pessimisation. So those calls
> > may be removed entirely.
>
> I'm not going to losen up these semantics. They might be utterly wrong,
> but it's what we have given to users for a long time. If you want to
> losen it up send a patch with a good rational for use case that it
> really matters, and extended version of the proof below and argue for
> it to get included. And take all the blamer later in case something
> breaks anyway.
Tbh, I'm not sure what the semantics _are_. If I understand right,
the data is written (without a barrier), but the metadata needed to
reach the data is not written at all by that point, and (for the
filesystems we care about) this branch is used only for filling holes
and extending files - precisely the cases where lack of metadata
is most likely to occur.
So the written data is simply unreachable if a crash occurs shortly
after a write. Later it's fine, but normal writeback would take care
of that anyway.
Do I misunderstand that? If I got that right, I'll see about a test
to find out of the data is really inaccessible when a crash occurs
after writing.
-- Jamie
next prev parent reply other threads:[~2009-09-30 18:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-23 13:07 [PATCH] direct I/O fallback sync simplification Christoph Hellwig
2009-09-23 14:04 ` Jamie Lokier
2009-09-26 15:08 ` Christoph Hellwig
2009-09-29 21:30 ` Jamie Lokier
2009-09-30 12:05 ` Christoph Hellwig
2009-09-30 18:13 ` Jamie Lokier [this message]
2009-09-26 19:37 ` Nick Piggin
2009-09-29 13:08 ` Jan Kara
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=20090930181332.GC2515@shareable.org \
--to=jamie@shareable.org \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=npiggin@suse.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;
as well as URLs for NNTP newsgroup(s).