[arch-general] NFS close-to-open

Bryan Schumaker bjschuma at gmail.com
Wed Dec 12 08:58:52 EST 2012

On 12/12/2012 05:35 AM, Paul Gideon Dann wrote:
> On Tuesday 11 Dec 2012 12:08:46 you wrote:
>> After more poking-about: filp_close() in the VFS calls nfs_file_flush(),
>> which writes the file back to the server.  The struct file we're given is
>> freed up shortly after calling flush, so this looks like the last chance we
>> get to write changes (and I don't think we should change that).
> Hmm, so is this maybe an implementation limitation?  I would expect "nocto" to 
> prevent that flushing, since that seems to be the main purpose of "nocto".  
> But maybe it would have been too much work to buffer the flushes, and so every 
> file gets flushed on close anyway?
> Paul

Something like that, yeah. "nocto" just applies to the attribute cache, and does not change the flushing behavior.

- Bryan

More information about the arch-general mailing list