Skip to content

Attribute revalidation updates

[email protected] linux-nfs 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest26 patches 0 repliesNew
  2. v117 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- A number of changes to try to clean up the cache invalidation flags.
- Fix a bug that was turning off revalidation for most attributes in nfs_getattr().
- Fixes to allow us to reduce the set of attributes we request from the server when holding a delegation. In particular, try to reduce requests for OWNER and GROUP_OWNER, since those may result in expensive upcalls.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26NFS: Deal correctly with attribute generation counter overflowfs/nfs/inode.c+4 -40 replies
2/26NFS: Fix up inode cache tracingfs/nfs/nfstrace.h+5 -00 replies
3/26NFS: Mask out unsupported attributes in nfs_getattr()fs/nfs/inode.c+4 -00 replies
4/26NFS: NFS_INO_REVAL_PAGECACHE should mark the change attribute invalidfs/nfs/inode.c+2 -10 replies
5/26NFS: Fix up revalidation of space usedfs/nfs/inode.c+12 -30 replies
6/26NFS: Don't revalidate attributes that are not being asked forfs/nfs/inode.c+9 -40 replies
7/26NFS: Fix up statx() resultsfs/nfs/inode.c+26 -30 replies
8/26NFS: nfs_setattr_update_inode() should clear the suid/sgid bitsfs/nfs/inode.c+8 -20 replies
9/26NFS: Add a cache validity flag argument to nfs_revalidate_inode()fs/nfs/dir.c fs/nfs/export.c fs/nfs/inode.c +3 more+14 -290 replies
10/26NFS: Replace use of NFS_INO_REVAL_PAGECACHE when checking cache validityfs/nfs/file.c fs/nfs/inode.c fs/nfs/nfs4proc.c +1 more+16 -340 replies
11/26NFS: Don't set NFS_INO_REVAL_PAGECACHE in the inode cache validityfs/nfs/inode.c fs/nfs/nfs4proc.c+2 -50 replies
12/26NFSv4: Fix nfs4_bitmap_copy_adjust()fs/nfs/nfs4proc.c+16 -170 replies
13/26NFS: Separate tracking of file nlinks cache validity from the mode/uid/gidfs/nfs/dir.c fs/nfs/inode.c fs/nfs/nfs4proc.c +2 more+23 -130 replies
14/26NFS: Separate tracking of file mode cache validity from the uid/gidfs/nfs/dir.c fs/nfs/inode.c fs/nfs/nfs4proc.c +3 more+30 -150 replies
15/26NFS: Fix up handling of outstanding layoutcommit in nfs_update_inode()fs/nfs/inode.c+5 -10 replies
16/26NFS: Remove a line of code that has no effect in nfs_update_inode()fs/nfs/inode.c+0 -10 replies
17/26NFS: Simplify cache consistency in nfs_check_inode_attributes()fs/nfs/inode.c+5 -130 replies
18/26NFSv4: Fix value of decode_fsinfo_maxszfs/nfs/nfs4xdr.c+10 -10 replies
19/26NFSv4: Don't modify the change attribute cached in the inodefs/nfs/write.c+0 -30 replies
20/26NFSv4: Add support for the NFSv4.2 "change_attr_type" attributefs/nfs/client.c fs/nfs/nfs3xdr.c fs/nfs/nfs4proc.c +5 more+52 -00 replies
21/26NFS: Use information about the change attribute to optimise updatesfs/nfs/inode.c fs/nfs/nfs4proc.c+110 -210 replies
22/26NFS: Another inode revalidation improvementfs/nfs/inode.c+29 -10 replies
23/26NFSv4: nfs4_inc/dec_nlink_locked should also invalidate ctimefs/nfs/nfs4proc.c+11 -70 replies
24/26NFSv4: link must update the inode nlink.fs/nfs/dir.c fs/nfs/nfs4proc.c+10 -10 replies
25/26NFS: Don't store NFS_INO_REVAL_FORCEDfs/nfs/delegation.c fs/nfs/delegation.h fs/nfs/inode.c +1 more+43 -520 replies
26/26NFS: Split attribute support out from the server capabilitiesfs/nfs/client.c fs/nfs/inode.c fs/nfs/nfs4proc.c +1 more+70 -560 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/26] Attribute revalidation updates

From: Trond Myklebust <[email protected]>

The following updates try to simplify some of the attribute caching, and further split out the attribute cache tracking. In particular, we want to make use of the fact that NFSv4.x doesn't always need to retrieve all the attributes to optimise the way we use the GETATTR call.

v2:
- A number of changes to try to clean up the cache invalidation flags.
- Fix a bug that was turning off revalidation for most attributes in nfs_getattr().
- Fixes to allow us to reduce the set of attributes we request from the server when holding a delegation. In particular, try to reduce requests for OWNER and GROUP_OWNER, since those may result in expensive upcalls.

Trond Myklebust (26):
NFS: Deal correctly with attribute generation counter overflow
NFS: Fix up inode cache tracing
NFS: Mask out unsupported attributes in nfs_getattr()
NFS: NFS_INO_REVAL_PAGECACHE should mark the change attribute invalid
NFS: Fix up revalidation of space used
NFS: Don't revalidate attributes that are not being asked for
NFS: Fix up statx() results
NFS: nfs_setattr_update_inode() should clear the suid/sgid bits
NFS: Add a cache validity flag argument to nfs_revalidate_inode()
NFS: Replace use of NFS_INO_REVAL_PAGECACHE when checking cache
validity
NFS: Don't set NFS_INO_REVAL_PAGECACHE in the inode cache validity
NFSv4: Fix nfs4_bitmap_copy_adjust()
NFS: Separate tracking of file nlinks cache validity from the
mode/uid/gid
NFS: Separate tracking of file mode cache validity from the uid/gid
NFS: Fix up handling of outstanding layoutcommit in nfs_update_inode()
NFS: Remove a line of code that has no effect in nfs_update_inode()
NFS: Simplify cache consistency in nfs_check_inode_attributes()
NFSv4: Fix value of decode_fsinfo_maxsz
NFSv4: Don't modify the change attribute cached in the inode
NFSv4: Add support for the NFSv4.2 "change_attr_type" attribute
NFS: Use information about the change attribute to optimise updates
NFS: Another inode revalidation improvement
NFSv4: nfs4_inc/dec_nlink_locked should also invalidate ctime
NFSv4: link must update the inode nlink.
NFS: Don't store NFS_INO_REVAL_FORCED
NFS: Split attribute support out from the server capabilities

 fs/nfs/client.c           |  18 +-
 fs/nfs/delegation.c       |  21 +-
 fs/nfs/delegation.h       |   3 +-
 fs/nfs/dir.c              |   7 +-
 fs/nfs/export.c           |   6 +-
 fs/nfs/file.c             |   2 +-
 fs/nfs/inode.c            | 414 ++++++++++++++++++++++++--------------
 fs/nfs/nfs3acl.c          |   2 +-
 fs/nfs/nfs3xdr.c          |   1 +
 fs/nfs/nfs4proc.c         | 160 +++++++++------
 fs/nfs/nfs4xdr.c          |  43 +++-
 fs/nfs/nfstrace.h         |  11 +-
 fs/nfs/proc.c             |   1 +
 fs/nfs/write.c            |   7 +-
 include/linux/nfs4.h      |   9 +
 include/linux/nfs_fs.h    |   6 +-
 include/linux/nfs_fs_sb.h |  14 +-
 include/linux/nfs_xdr.h   |   2 +
 18 files changed, 478 insertions(+), 249 deletions(-)
Signature · 1 line
2.30.2