Patch description: Oracle bug 9448515 and redhat bugzilla 557423 Patch for redhat bugzilla 511170 causes EIO while running fio and dbt2 tests. Apparently commit 61822ab5e3ed09fcfc49e37227b655202adf6130 can fix this. However, it cannot be applied to EL5 without pulling in major updates from upstream. Hence this patch reverts the checking for return code in nfs_revalidate_mapping(). Signed-off-by: Chuck Lever Signed-off-by: Guru Anbalagane diff -uNrp linux-2.6.18.i686.orig/fs/nfs/inode.c linux-2.6.18.i686/fs/nfs/inode.c --- linux-2.6.18.i686.orig/fs/nfs/inode.c 2010-03-23 14:10:00.447892000 -0700 +++ linux-2.6.18.i686/fs/nfs/inode.c 2010-03-23 14:33:56.416797000 -0700 @@ -734,14 +734,9 @@ int nfs_revalidate_mapping(struct inode if (nfsi->cache_validity & NFS_INO_INVALID_DATA) { if (mapping->nrpages != 0) { - if (S_ISREG(inode->i_mode)) { - ret = nfs_sync_mapping(mapping); - if (ret < 0) - goto out; - } - ret = invalidate_inode_pages3(mapping); - if (ret < 0) - goto out; + if (S_ISREG(inode->i_mode)) + nfs_sync_mapping(mapping); + invalidate_inode_pages3(mapping); } spin_lock(&inode->i_lock); nfsi->cache_validity &= ~NFS_INO_INVALID_DATA;