summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-21 15:37:01 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-21 21:09:24 -0400
commitb8413f98f997bb3ed7327e6d7117e7e91ce010c3 (patch)
tree9921bcb0dc978d2c7fe549e81080c0539fef8c71 /virt/kvm
parentb31268ac793fd300da66b9c28bbf0a200339ab96 (diff)
NFS: Fix a hang/infinite loop in nfs_wb_page()
When one of the two waits in nfs_commit_inode() is interrupted, it returns a non-negative value, which causes nfs_wb_page() to think that the operation was successful causing it to busy-loop rather than exiting. It also causes nfs_file_fsync() to incorrectly report the file as being successfully committed to disk. This patch fixes both problems by ensuring that we return an error if the attempts to wait fail. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@kernel.org
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions