mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] NFS: fixes for delegated timestamps
@ 2026-11-09 20:44 Jeff Layton
  2026-11-09 20:44 ` [PATCH v2 1/3] NFS: don't let delegated c/mtime stamps go backward Jeff Layton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jeff Layton @ 2026-11-09 20:44 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker, Lance Shelton, Olga Kornievskaia
  Cc: Thomas Haynes, linux-nfs, linux-kernel, Jeff Layton

This version fixes some issues that Sashiko pointed out.

These are some client-side fixes for problems that I was seeing with
delegated timestamps. Mostly this was evident in the git regression
testsuite (which is particularly sensitive to timestamp issues).

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Changes in v2:
- "don't let delegated c/mtime stamps go backward": compute the stamp
  before storing it, so lockless readers never see the coarse time
- "stamp after the server's ctime when truncating under delegated times":
  stamp before nfs_vmtruncate() drops i_lock
- "stamp after the server's ctime following a CLONE":
  - stamp under i_lock
  - apply the reply with nfs_refresh_inode() under delegated times, so
    its ctime doesn't overwrite the stamp
- Link to v1: https://lore.kernel.org/r/20261106-delegts-nfs-v1-0-1d5c5e364a07@kernel.org

---
Jeff Layton (3):
      NFS: don't let delegated c/mtime stamps go backward
      NFS: stamp after the server's ctime when truncating under delegated times
      NFS: stamp after the server's ctime following a CLONE

 fs/nfs/delegation.h |  2 ++
 fs/nfs/inode.c      | 65 ++++++++++++++++++++++++++++++++++++++++-------------
 fs/nfs/nfs42proc.c  | 25 ++++++++++++++++-----
 3 files changed, 72 insertions(+), 20 deletions(-)
---
base-commit: 5e810a57a1cf2fc785d89e711ff40f1112f6404c
change-id: 20261106-delegts-nfs-25dafe47b434

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-09 20:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 20:44 [PATCH v2 0/3] NFS: fixes for delegated timestamps Jeff Layton
2026-11-09 20:44 ` [PATCH v2 1/3] NFS: don't let delegated c/mtime stamps go backward Jeff Layton
2026-11-09 20:44 ` [PATCH v2 2/3] NFS: stamp after the server's ctime when truncating under delegated times Jeff Layton
2026-11-09 20:44 ` [PATCH v2 3/3] NFS: stamp after the server's ctime following a CLONE Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®