]> 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)
commit844251eeb2dec589fcb564358398e33d6d67b822
tree1efc578e5b1c814940cb6393d541a7919e9a94bc
parent397d9baad7da22d79c5bd78055b7ac8d0db09fcc
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