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)
commit73b0c07a76dbeffdae14023837bb8e284f057589
tree31182d2e8707bccf3cc650844785f2953ee32ac1
parent8b13243a7f079058d56341f15c888ca581cd699f
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