Thread (41 messages) 41 messages, 11 authors, 2008-05-29

Re: [PATCH 4/4] ext4: call blkdev_issue_flush on fsync

From: Eric Sandeen <hidden>
Date: 2008-05-20 15:53:23
Also in: lkml

Jamie Lokier wrote:
Theodore Tso wrote:
quoted
On Fri, May 16, 2008 at 02:09:56PM -0500, Eric Sandeen wrote:
quoted
To ensure that bits are truly on-disk after an fsync,
we should call blkdev_issue_flush if barriers are supported.
This patch isn't necessary, and in fact will cause a double flush.
When you call fsync(), it calls ext4_force_commit(), and we do a the
equivalent of a blkdev_issue_flush() today (which is what happenes
when you do a submit_bh(WRITE_BARRIER, bh), which is what setting
set_ordered_mode(bh) ends up causing.
ISTR fsync() on ext3 did not always force a commit, if in-place data
writes did not change any metadata.
I think that might still be true, but I'm still looking through it (in
the background...)

I tried blktrace to see what was going on but I'm not sure what an "NB"
in the RWBS field means, anyone know?

-Eric
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help