From: Trond Myklebust Date: Mon, 21 Mar 2011 19:37:01 +0000 (-0400) Subject: NFS: Fix a hang/infinite loop in nfs_wb_page() X-Git-Tag: v2.6.39-rc1~72^2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8413f98f997bb3ed7327e6d7117e7e91ce010c3;p=pandora-kernel.git 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 Cc: stable@kernel.org --- Reading git-diff-tree failed