]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: return expired on unfound stateid's
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 2 Oct 2010 22:42:39 +0000 (18:42 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 2 Oct 2010 22:49:33 +0000 (18:49 -0400)
commitf369b591067825ddbfd62e409c5e0823ee76e753
tree64dc7ef93b822a703d5ffe32aeb8007550d1daa5
parente3ba1c2681a242087d36b101ecd1d49fcdc0db4a
nfsd4: return expired on unfound stateid's

Commit 9dc6951ef600a7b1a81485d1fae109c0db6d0578 "nfsd4: distinguish
expired from stale stateids" attempted to distinguish expired and stale
stateid's using time information that may not have been completely
reliable, so I reverted it.

That was throwing out the baby with the bathwater; we still do want to
return expired, but let's do that using the simpler approach of just
assuming any stateid is expired if it looks like it was given out by the
current server instance, but we can't find it any more.

This may help clients that are recovering from network partitions.

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