]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: match close replays on stateid, not open owner id
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 16 Sep 2011 21:42:48 +0000 (17:42 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 17 Sep 2011 14:01:54 +0000 (10:01 -0400)
commit38c387b52d8404f8fd29d8c26bebc83a80733657
tree41879d4c05ef03368856439f232df7ac1fcc2b0b
parentdad1c067eb42ec8bedadd64f681056914547d22e
nfsd4: match close replays on stateid, not open owner id

Keep around an unhashed copy of the final stateid after the last close
using an openowner, and when identifying a replay, match against that
stateid instead of just against the open owner id.  Free it the next
time the seqid is bumped or the stateowner is destroyed.

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