[Linux-cachefs] FSCache: Cookie create and destroy semantics on file open

David Howells dhowells at redhat.com
Wed Aug 7 06:04:25 UTC 2013


Milosz Tanski <milosz at adfin.com> wrote:

> I have a question for you about how added / removing the cookie for a
> NFS inode works. Right the cache entry gets added when the file is
> open. It gets revoked when the file re-opened in write mode. What
> happens in this case.
> 
> Open for read (create cookie) -> Open for write (destroy cookie) ->
> Open for read (create cookie again)
> 
> In this case, none of the 3 files were closed.

No.  The way NFS is doing this is wrong.  I have been given some patches that
should fix this, I think.

David




More information about the Linux-cachefs mailing list