]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'fscache' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells...
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 23:33:36 +0000 (19:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 23:36:46 +0000 (19:36 -0400)
commitf287615444b45a6654f143707831a1e7ba6faaa8
tree1b0231679ec4d86e6f88b233de825bd5b8e687ac
parent4efeeffe18647d24128f3393384e0cf5f6e0933c
parent4196b6933358b532cb07866b4f3675d5179ccfda
Merge branch 'fscache' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs into linux-next

Pull fs-cache fixes from David Howells:

Can you pull these commits 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 gist of the patchset is that the cookie should be acquired at inode
creation only and subsequently enabled and disabled as appropriate (which
dispenses with the backing objects when they're not needed).

The extra synchronisation that NFS does can then be dispensed with as it is
thenceforth managed by FS-Cache.

Could you send these on to Linus?

This likely will need fixing also in CIFS and 9P also once the FS-Cache
changes are upstream.  AFS and Ceph are probably safe.

* 'fscache' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
  NFS: Use i_writecount to control whether to get an fscache cookie in nfs_open()
  FS-Cache: Provide the ability to enable/disable cookies
  FS-Cache: Add use/unuse/wake cookie wrappers
fs/nfs/dir.c
fs/nfs/inode.c
fs/nfs/nfs4file.c