From: Christoph Hellwig <hch@infradead.org>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Jeff Moyer <jmoyer@redhat.com>,
linux-fsdevel@vger.kernel.org, Jan Kara <jack@suse.cz>,
linux-ext4 <linux-ext4@vger.kernel.org>
Subject: Re: [RFC PATCH] ext4: Convert unwritten extents during end_io processing
Date: Wed, 28 Nov 2012 09:34:05 -0500 [thread overview]
Message-ID: <20121128143405.GB23743@infradead.org> (raw)
In-Reply-To: <20121128080254.GB11869@blackbox.djwong.org>
On Wed, Nov 28, 2012 at 12:02:54AM -0800, Darrick J. Wong wrote:
> Here's a lightly tested (it passed enough of xfstests and an aio+dio+osync
> tester on ext4 on x64...) patch that rips out the whole wq mess to convert
> unwritten extents from endio processing. This has the effect that unwritten
> extents are now converted as part of writeback, not fsync/truncate/punch_hole.
> I have a suspicion that the reason why ext4 had that behavior was to reduce
> churn in the extent tree if one writes a bunch of adjacent sections of hole.
> Oh well. I haven't seen any huge regressions yet, but then I'm really just
> posting this early to see if anyone spots obvious bugs.
>
> Christoph, was this what you had in mind?
Can you actually call ext4_convert_unwritten_extents from irq context
safely for the buffered I/O case? At least for the XFS equivalent we
need user context, which is why we have these workqueues in the first
place.
But what we're doing is to make sure unwritten extent conversion happens
before marking the page writeback complete, so that
filemap_write_and_wait and friends implicitly wait for this conversion
when waiting for page I/O to complete, and thus removing the need for
all the explicit flushing infrastructure.
next prev parent reply other threads:[~2012-11-28 14:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20121123075502.307482760@bombadil.infradead.org>
[not found] ` <20121123075916.375908616@bombadil.infradead.org>
[not found] ` <x49a9u3f276.fsf@segfault.boston.devel.redhat.com>
2012-11-28 0:26 ` [PATCH 2/2] [PATCH 2/2] direct-io: handle handle O_(D)SYNC AIO Darrick J. Wong
2012-11-28 0:30 ` Christoph Hellwig
2012-11-28 8:02 ` [RFC PATCH] ext4: Convert unwritten extents during end_io processing Darrick J. Wong
2012-11-28 14:34 ` Christoph Hellwig [this message]
2012-11-29 19:47 ` Darrick J. Wong
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=20121128143405.GB23743@infradead.org \
--to=hch@infradead.org \
--cc=darrick.wong@oracle.com \
--cc=jack@suse.cz \
--cc=jmoyer@redhat.com \
--cc=linux-ext4@vger.kernel.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).