NFSv4: Clear the open state flags if the new stateid does not match
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 13 Feb 2014 00:15:06 +0000 (19:15 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Feb 2014 02:21:07 +0000 (21:21 -0500)
commit4f14c194a996e75c01e44a8832f1d983ccaeefc0
tree31182d2e8707bccf3cc650844785f2953ee32ac1
parent226056c5c312b3dac16ff6d4f40208f95c070b6a
NFSv4: Clear the open state flags if the new stateid does not match

RFC3530 and RFC5661 both prescribe that the 'opaque' field of the
open stateid returned by new OPEN/OPEN_DOWNGRADE/CLOSE calls for
the same file and open owner should match.
If this is not the case, assume that the open state has been lost,
and that we need to recover it.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c