[PATCH v3 0/8] nfsd/vfs: fix handling of delegated timestamp updates

Jeff Layton posted 8 patches 2 months, 1 week ago
There is a newer version of this series
fs/attr.c           | 34 ++++++++++---------------
fs/inode.c          | 73 -----------------------------------------------------
fs/nfsd/nfs4proc.c  | 31 ++++++++++++++++++++++-
fs/nfsd/nfs4state.c | 44 +++++++++++++++++---------------
fs/nfsd/nfs4xdr.c   |  5 ++--
fs/nfsd/state.h     |  8 ++++++
fs/nfsd/vfs.c       |  2 +-
include/linux/fs.h  |  3 +--
8 files changed, 79 insertions(+), 121 deletions(-)
[PATCH v3 0/8] nfsd/vfs: fix handling of delegated timestamp updates
Posted by Jeff Layton 2 months, 1 week ago
This patchset fixes the handling of delegated timestamps in nfsd.

This posting is basically identical to the last, aside from
splitting out one fix into a separate patch, and the addition of some
Fixes: tags.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Changes in v3:
- split out decoder fix into separate patch
- add Fixes: tags
- Link to v2: https://lore.kernel.org/r/20250726-nfsd-testing-v2-0-f45923db2fbb@kernel.org

Changes in v2:
- add ATTR_CTIME_SET and remove inode_set_ctime_deleg()
- track original timestamps in struct nfs4_delegation
- fix delegated timestamp updates to respect saved timestamps
- Link to v1: https://lore.kernel.org/r/20250722-nfsd-testing-v1-0-31321c7fc97f@kernel.org

---
Jeff Layton (8):
      nfsd: fix assignment of ia_ctime.tv_nsec on delegated mtime update
      nfsd: ignore ATTR_DELEG when checking ia_valid before notify_change()
      vfs: add ATTR_CTIME_SET flag
      nfsd: use ATTR_CTIME_SET for delegated ctime updates
      nfsd: track original timestamps in nfs4_delegation
      nfsd: fix SETATTR updates for delegated timestamps
      nfsd: fix timestamp updates in CB_GETATTR
      vfs: remove inode_set_ctime_deleg()

 fs/attr.c           | 34 ++++++++++---------------
 fs/inode.c          | 73 -----------------------------------------------------
 fs/nfsd/nfs4proc.c  | 31 ++++++++++++++++++++++-
 fs/nfsd/nfs4state.c | 44 +++++++++++++++++---------------
 fs/nfsd/nfs4xdr.c   |  5 ++--
 fs/nfsd/state.h     |  8 ++++++
 fs/nfsd/vfs.c       |  2 +-
 include/linux/fs.h  |  3 +--
 8 files changed, 79 insertions(+), 121 deletions(-)
---
base-commit: b05f077b59098b4760e3f675b00a4e6a1ad4b0ad
change-id: 20250722-nfsd-testing-5e861a3cf3a0

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>
Re: [PATCH v3 0/8] nfsd/vfs: fix handling of delegated timestamp updates
Posted by Chuck Lever 2 months, 1 week ago
From: Chuck Lever <chuck.lever@oracle.com>

On Sun, 27 Jul 2025 14:36:10 -0400, Jeff Layton wrote:
> This patchset fixes the handling of delegated timestamps in nfsd.
> 
> This posting is basically identical to the last, aside from
> splitting out one fix into a separate patch, and the addition of some
> Fixes: tags.
> 
> 
> [...]

Applied to nfsd-testing, thanks!

[1/8] nfsd: fix assignment of ia_ctime.tv_nsec on delegated mtime update
      commit: fe4f2bcb1a5ec8301af577b9373c80842212145c
[2/8] nfsd: ignore ATTR_DELEG when checking ia_valid before notify_change()
      commit: 4d619040969071a8e2fb51f66df52cc9fc25015f
[3/8] vfs: add ATTR_CTIME_SET flag
      commit: a8adc73b9ff670b77ff3e99b315a4f2c49123444
[4/8] nfsd: use ATTR_CTIME_SET for delegated ctime updates
      commit: 9c5d4468d49e0066682f473e0d4c908d904d350e
[5/8] nfsd: track original timestamps in nfs4_delegation
      commit: 3d0b3a6ab22cb233b9cc52872ba0ff2350eb9ba0
[6/8] nfsd: fix SETATTR updates for delegated timestamps
      commit: 1a64065d565d76942fd086c134de70cad3515887
[7/8] nfsd: fix timestamp updates in CB_GETATTR
      commit: 409cc8fd6365956ce0d0f14d20d1c59b4c05f5b2
[8/8] vfs: remove inode_set_ctime_deleg()
      commit: 5cca8d3d2fc34440fb73f5b8331d5228ef6d151a

--
Chuck Lever