nfsd4: construct stateid from clientid and counter
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Sep 2011 19:02:41 +0000 (15:02 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 19 Sep 2011 10:33:57 +0000 (06:33 -0400)
commitd3b313a463c64c54d57c6af09c4a5d20106c1d1c
tree9ade49e59a3771f2a4dedf50baf0f44d55b11b46
parent2da1cec713bc6d3ec9732e7d48b8bc0453580fd3
nfsd4: construct stateid from clientid and counter

Including the full clientid in the on-the-wire stateid allows more
reliable detection of bad vs. expired stateid's, simplifies code, and
ensures we won't reuse the opaque part of the stateid (as we currently
do when the same openowner closes and reopens the same file).

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/state.h