Prev: hv: Added new hv_utils driver with shutdown as first functionality - NO OUTLOOK
Next: [PATCH 1/2] kernel:fork: fix dependency of hardirqs_enabled and softirqs_enabled
From: Christoph Hellwig on 4 May 2010 11:50 On Tue, May 04, 2010 at 10:16:37AM -0400, Ric Wheeler wrote: > Checking per inode is actually incorrect - we do not want to short cut > the need to flush the target storage device's write cache just because a > specific file has no dirty pages. If a power hit occurs, having sent > the pages from to the storage device is not sufficient. As long as we're only using the information for fsync doing it per inode is the correct thing. We only want to flush the cache if the inode (data or metadata) is dirty in some way. Note that this includes writes via O_DIRECT which are quite different to track - I've not found the original patch in my mbox so I can't comment if this is done right. It might be good idea to track this information directly in the writeback/direct I/O code so that we don't have to reimplement it for every filesystems, btw. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |