I'm not aware of any existing bugs around this, but the expectation is that nfs_mark_for_revalidate() should always force a revalidation of the cached metadata.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -292,9 +292,12 @@ static inline void nfs_mark_for_revalidate(struct inode *inode) · 291 unmodified lines | ||
| 292 | 292 | struct nfs_inode *nfsi = NFS_I(inode); |
| 293 | 293 | |
| 294 | 294 | spin_lock(&inode->i_lock); |
| 295 | − nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS; | |
| 295 | + nfsi->cache_validity |= NFS_INO_INVALID_ATTR | | |
| 296 | + NFS_INO_REVAL_PAGECACHE | | |
| 297 | + NFS_INO_INVALID_ACCESS | | |
| 298 | + NFS_INO_INVALID_ACL; | |
| 296 | 299 | if (S_ISDIR(inode->i_mode)) |
| 297 | − nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA; | |
| 300 | + nfsi->cache_validity |= NFS_INO_INVALID_DATA; | |
| 298 | 301 | spin_unlock(&inode->i_lock); |
| 299 | 302 | } |
| 300 | 303 | |