[RFC][PATCH 0/3] FS-Cache: NFS(/CIFS/Ceph/9P): Fix start-caching whilst writing race

2013-09-20 Thread David Howells
Following this mail is a series of patches to fix an issue with NFS whereby caching can be enabled on a file that is open for writing by subsequently opening it for reading. This can be made to crash by opening it for writing again if you're quick enough. The patches mailed here may not apply d

Re: [RFC][PATCH 0/3] FS-Cache: NFS(/CIFS/Ceph/9P): Fix start-caching whilst writing race

2013-09-23 Thread Milosz Tanski
This should not be a problem with Ceph as the MDS (the metadata server) hands out cache capability bit for an inode. In this schema there's no need to worry about the count of of local file pointers open for write (or even across the cluster). As an aside, the Ceph code checks if we can perform th