Skip to content

nfsd: fix final setattr on delegated timestamps

Jeff Layton linux-nfs lkml oe-lkp 1 version Applied

Status from this message: Applied to nfsd-next for v6.13, thanks!

Get series with b4
b4 am [email protected] change-id 20241018-delstid-5114634947de

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3nfsd: add TIME_DELEG_ACCESS and TIME_DELEG_MODIFY to writeable attrsfs/nfsd/nfsd.h+4 -10 replies
2/3nfsd: allow SETATTR to provide a READ deleg for updating time_accessfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c+7 -20 replies
3/3nfsd: new tracepoint for after op_func in compound processingfs/nfsd/nfs4proc.c fs/nfsd/trace.h+14 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] nfsd: fix final setattr on delegated timestamps

Olga reported seeing a NFS4ERR_INVAL return on the final SETATTR before a DELEGRETURN to set the timestamps. The first patch fixes that by simply ensuring they are declared writeable. The second patch fixes a related bug in the stateid handling in that same SETATTR. The last patch adds a new tracepoint that I found useful for tracking this down.

It might be best to squash the first two patches into this one:

f6b1cfab609d nfsd: handle delegated timestamps in SETATTR

The last one should probably go in on its own.

Thanks!

---
Jeff Layton (3):
nfsd: add TIME_DELEG_ACCESS and TIME_DELEG_MODIFY to writeable attrs
nfsd: allow SETATTR to provide a READ deleg for updating time_access
nfsd: new tracepoint for after op_func in compound processing

 fs/nfsd/nfs4proc.c  |  8 +++++++-
 fs/nfsd/nfs4state.c |  2 +-
 fs/nfsd/nfsd.h      |  5 ++++-
 fs/nfsd/trace.h     | 14 +++++++++++++-
 4 files changed, 25 insertions(+), 4 deletions(-)

---
base-commit: 0f8b1a41842544ec66d328ce4349834d7a823d30
change-id: 20241018-delstid-5114634947de

Best regards,

Signature · 1 line
Jeff Layton <[email protected]>