]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitca0daa277acac1029f74d9fea838c9e507398226
tree1efc578e5b1c814940cb6393d541a7919e9a94bc
parent57b691819ee2b095da505b34abdcd3193d0af75c
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