]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: distinguish expired from stale stateids
authorBian Naimeng <biannm@cn.fujitsu.com>
Wed, 22 Apr 2009 10:25:37 +0000 (18:25 +0800)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 24 Apr 2009 23:17:18 +0000 (19:17 -0400)
commit9dc6951ef600a7b1a81485d1fae109c0db6d0578
tree1a4b52cf0cd92ce7529036a3efa0eb4ad1bd2744
parent8ecf3a7d18ea4c037e3746cf876fe88cddd43f46
nfsd4: distinguish expired from stale stateids

If we encode the time of client creation into the stateid instead of the
time of server boot, then we can determine whether that stateid is from
a previous instance of the a server, or from a client that has expired,
and return an appropriate error to the client.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c