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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2017 07:30:53 +0000 (08:30 +0100)
commitedef1086bf094bbc6b35dc624e79ee6920215bf4
tree65c50c94d4a1100d5d514fcd6d6748fb7981f7db
parent0f64f22c0686ca66cb5d0c88d1322d7cf32e1986
NFSv4.0: always send mode in SETATTR after EXCLUSIVE4

commit a430607b2ef7c3be090f88c71cfcb1b3988aa7c0 upstream.

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: 5334c5bdac92 ("NFS: Send attributes in OPEN request for NFS4_CREATE_EXCLUSIVE4_1")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c