]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.0: always send mode in SETATTR after EXCLUSIVE4
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 24 Jan 2017 16:34:20 +0000 (11:34 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 24 Jan 2017 17:52:34 +0000 (12:52 -0500)
commitdfa20bdf2b4e606d5e2c25e7a680723e915074bc
tree47c2ef9fdb8b7c44cb12316e3fcf7319bf959653
parentf54b280bb73304bf3f6355ac620c9e6a236ccadd
NFSv4.0: always send mode in SETATTR after EXCLUSIVE4

Some nfsv4.0 servers may return a mode for the verifier following an open
with EXCLUSIVE4 createmode, but this does not mean the client should skip
setting the mode in the following SETATTR.  It should only do that for
EXCLUSIVE4_1 or UNGAURDED createmode.

Fixes: 3e9ceb04ce72 ("NFS: Send attributes in OPEN request for NFS4_CREATE_EXCLUSIVE4_1")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org # v4.3+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c