summaryrefslogtreecommitdiffstats
path: root/usr/.gitignore
diff options
context:
space:
mode:
authorTrond Myklebust2015-03-03 05:32:08 +0100
committerTrond Myklebust2015-03-03 19:02:29 +0100
commit874f946376de57c8d6230b30ad71f742883fee3a (patch)
tree0fd166cc4798b50069d1120f822f094a60b7a9c2 /usr/.gitignore
parentNFSv4: Ensure we skip delegations that are already being returned (diff)
downloadkernel-qcow2-linux-874f946376de57c8d6230b30ad71f742883fee3a.tar.gz
kernel-qcow2-linux-874f946376de57c8d6230b30ad71f742883fee3a.tar.xz
kernel-qcow2-linux-874f946376de57c8d6230b30ad71f742883fee3a.zip
NFS: Fix a regression in the read() syscall
When invalidating the page cache for a regular file, we want to first sync all dirty data to disk and then call invalidate_inode_pages2(). The latter relies on nfs_launder_page() and nfs_release_page() to deal respectively with dirty pages, and unstable written pages. When commit 9590544694bec ("NFS: avoid deadlocks with loop-back mounted NFS filesystems.") changed the behaviour of nfs_release_page(), then it made it possible for invalidate_inode_pages2() to fail with an EBUSY. Unfortunately, that error is then propagated back to read(). Let's therefore work around the problem for now by protecting the call to sync the data and invalidate_inode_pages2() so that they are atomic w.r.t. the addition of new writes. Later on, we can revisit whether or not we still need nfs_launder_page() and nfs_release_page(). Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'usr/.gitignore')
0 files changed, 0 insertions, 0 deletions