Skip to content
  • Trond Myklebust's avatar
    NFS: Fix the resolution problem with nfs_inode_attrs_need_update() · 4704f0e2
    Trond Myklebust authored
    
    
    It appears that 'jiffies' timestamps do not have high enough resolution for
    nfs_inode_attrs_need_update(). One problem is that a GETATTR can be
    launched within < 1 jiffy of the last operation that updated the attribute.
    Another problem is that RPC calls can take < 1 jiffy to execute.
    
    We can fix this by switching the variables to use a simple global counter
    that gets incremented every time we start another GETATTR call.
    
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    4704f0e2