NFS: Ensure we revalidate the inode correctly after setacl
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 8 Apr 2018 22:14:43 +0000 (18:14 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 May 2018 19:02:16 +0000 (15:02 -0400)
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c

index d21c5e4220a02c06831d448c66bb2b78804cb4c7..36e36f176c75db3b6638a09cf9d6f49b31e7f64c 100644 (file)
@@ -5391,7 +5391,8 @@ static int __nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t bufl
         */
        spin_lock(&inode->i_lock);
        NFS_I(inode)->cache_validity |= NFS_INO_INVALID_CHANGE
-               | NFS_INO_INVALID_CTIME;
+               | NFS_INO_INVALID_CTIME
+               | NFS_INO_REVAL_FORCED;
        spin_unlock(&inode->i_lock);
        nfs_access_zap_cache(inode);
        nfs_zap_acl_cache(inode);