]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix setting of NFS4_OO_CONFIRMED in nfsd4_open
authorJeff Layton <jlayton@primarydata.com>
Fri, 30 May 2014 13:09:28 +0000 (09:09 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 4 Jun 2014 19:42:02 +0000 (15:42 -0400)
commit34a218a7aa9b1043f826fca123415a08a891d778
tree8fafd0f7135dbfdc824f3e1ecd9528199a2a6ad4
parentab96163b5f3dc479c1e32e0a90b29339730a3801
nfsd: fix setting of NFS4_OO_CONFIRMED in nfsd4_open

In the NFS4_OPEN_CLAIM_PREVIOUS case, we should only mark it confirmed
if the nfs4_check_open_reclaim check succeeds.

In the NFS4_OPEN_CLAIM_DELEG_PREV_FH and NFS4_OPEN_CLAIM_DELEGATE_PREV
cases, I see no point in declaring the openowner confirmed when the
operation is going to fail anyway, and doing so might allow the client
to game things such that it wouldn't need to confirm a subsequent open
with the same owner.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c