]> www.infradead.org Git - users/hch/misc.git/commit
NFS: Fix attribute delegation behaviour on exclusive create
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 23 Oct 2024 13:35:43 +0000 (09:35 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 4 Nov 2024 15:24:19 +0000 (10:24 -0500)
commitd054c5eb2890633935c23c371f45fb2d6b3b4b64
treeb621387e837ee488cca014dc024d51d599bead74
parentdc270d7159699ad6d11decadfce9633f0f71c1db
NFS: Fix attribute delegation behaviour on exclusive create

When the client does an exclusive create and the server decides to store
the verifier in the timestamps, a SETATTR is subsequently sent to fix up
those timestamps. When that is the case, suppress the exceptions for
attribute delegations in nfs4_bitmap_copy_adjust().

Fixes: 32215c1f893a ("NFSv4: Don't request atime/mtime/size if they are delegated to us")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/nfs4proc.c