Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to block devices

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Hellwig
Date: Thursday, April 15, 2010 - 3:42 am

On Thu, Apr 15, 2010 at 02:40:39PM +1000, Anton Blanchard wrote:

Actually you can just drop this call entirely.  sync_blockdev is an
overcomplicated alias for filemap_write_and_wait on the  block device
inode, which is exactl what we did just before calling into ->fsync

It might be worth to still drop i_mutex for the cache flush, though.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to bl ..., Christoph Hellwig, (Thu Apr 15, 3:42 am)