OSDN Git Service

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 d21c5e4..36e36f1 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);