Re: [PATCH] ext3: call blkdev_issue_flush on fsync

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Dilger
Date: Friday, March 26, 2010 - 12:24 pm

On 2010-03-26, at 10:50, Surbhi Palande wrote:


I don't think we need yet ANOTHER barrier here.  If the filesystem is  
mounted in data={journaled,ordered} mode it will have flushed the data  
to disk as part of the journal commit.  If there is an external  
journal, there were patches posted to have it flush the data on the  
filesystem device at transaction commit time.

Since fsync on any inode always implies sync of the journal, the only  
time that this would be needed is if we are running in no-journal  
mode, or possibly in data=writeback mode.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ext3: call blkdev_issue_flush on fsync, Surbhi Palande, (Fri Mar 26, 9:50 am)
Re: [PATCH] ext3: call blkdev_issue_flush on fsync, Andreas Dilger, (Fri Mar 26, 12:24 pm)
Re: [PATCH] ext3: call blkdev_issue_flush on fsync, Eric Sandeen, (Fri Mar 26, 12:37 pm)
Re: [PATCH] ext3: call blkdev_issue_flush on fsync, Surbhi Palande, (Fri Mar 26, 12:55 pm)