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)
commit78155ed75f470710f2aecb3e75e3d97107ba8374
tree1a4b52cf0cd92ce7529036a3efa0eb4ad1bd2744
parenta9e61e25f9d2e7e43bf17625f5cb56c9e0a89b17
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