[lkml]   [2008]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] ext3: wait on all pending commits in ext3_sync_fs
On Dec 22, 2008  14:15 -0500, Ric Wheeler wrote:
> Without having dived into the patch in detail, one worry I would have is
> that we still might care to spin up a drive for empty transactions in
> order to invalidate the drive's write cache.
> For example, if we have the following sequence:
> (1) user app performs series of writes to file A
> (2) pages dirtied from writes to A are destaged to the disk over time
> (3) user app issues fsync(file A) to make sure that the data will
> survive a power outage
> At this point in time, would this change prevent us from spinning up the
> drive and invalidating the disk write cache for that fsync() ?

Well, if the writes themselves didn't spin up the drive, it is uncertain
whether the write of the journal commit block would be any more helpful
in getting that to happen.

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

 \ /
  Last update: 2008-12-23 00:01    [W:0.105 / U:7.136 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site