]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfsd: update mtime/ctime on CLONE in presense of delegated attributes
authorOlga Kornievskaia <okorniev@redhat.com>
Fri, 10 Apr 2026 16:09:19 +0000 (12:09 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 10 May 2026 16:39:48 +0000 (12:39 -0400)
commit2863bac7f49c4acd80a048ce52506a2b9c8db015
treedb3354c3c16dd4fb5add85e23544a002f99dc1c6
parent304d81a2fbf2b454def4debcb38ea173911b72cd
nfsd: update mtime/ctime on CLONE in presense of delegated attributes

When delegated attributes are given on open, the file is opened with
NOCMTIME and modifying operations do not update mtime/ctime as to not get
out-of-sync with the client's delegated view. However, for CLONE operation,
the server should update its view of mtime/ctime and reflect that in any
GETATTR queries.

Fixes: e5e9b24ab8fa ("nfsd: freeze c/mtime updates with outstanding WRITE_ATTRS delegation")
Cc: stable@vger.kernel.org
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c
fs/nfsd/state.h