diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-03-21 15:37:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-27 11:36:36 -0700 |
commit | 172af058996db9c3dc6230d966295ed338dc3538 (patch) | |
tree | 6e1d9d9d11e72d252e07d8c69721f98f5478b955 /kernel/rtmutex-debug.c | |
parent | 144a4ea712041e818df28a2bea81431143164da8 (diff) |
NFS: Fix a hang/infinite loop in nfs_wb_page()
commit b8413f98f997bb3ed7327e6d7117e7e91ce010c3 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions