]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Cache aggressively when file is open for writing
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 8 Jun 2016 21:08:28 +0000 (17:08 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 22 Jun 2016 13:59:42 +0000 (09:59 -0400)
commit4130998608c512960c51f37197973537c1a79893
tree1efc578e5b1c814940cb6393d541a7919e9a94bc
parentd0d055d4e0b7465d5067d564f874f3d5e3429fd7
NFS: Cache aggressively when file is open for writing

Unless the user is using file locking, we must assume close-to-open
cache consistency when the file is open for writing. Adjust the
caching algorithm so that it does not clear the cache on out-of-order
writes and/or attribute revalidations.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/file.c
fs/nfs/inode.c