• Trond Myklebust's avatar
    NFS: Fix the ESTALE "revalidation" in _nfs_revalidate_inode() · 7fdc49c4
    Trond Myklebust authored
    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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    7fdc49c4
inode.c 33.7 KB