NFS: Fix the ESTALE "revalidation" in _nfs_revalidate_inode()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2007 23:11:33 +0000 (19:11 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:19:08 +0000 (17:19 -0400)
commit7fdc49c4e49ba926348f71844cda7f5e12709738
treeacd0344bf0bdb7318be81d25d4a479044d6f5e22
parent8850df999cd16aa141098e2e8be04a590276f3cc
NFS: Fix the ESTALE "revalidation" in _nfs_revalidate_inode()

For one thing, the test NFS_ATTRTIMEO() == 0 makes no sense: we're
testing whether or not the cache timeout length is zero, which is totally
unrelated to the issue of whether or not we trust the file staleness.

Secondly, we do not want to retry the GETATTR once a file has been declared
stale by the server: we rather want to discard that inode as soon as
possible, since there are broken servers still in use out there that reuse
filehandles on new files.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c