nfsd4: hash closed stateid's like any other
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 17 Sep 2011 00:12:38 +0000 (20:12 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 19 Sep 2011 12:39:34 +0000 (08:39 -0400)
Look up closed stateid's in the stateid hash like any other stateid
rather than searching the close lru.

This is simpler, and fixes a bug: currently we handle only the case of a
close that is the last close for a given stateowner, but not the case of
a close for a stateowner that still has active opens on other files.
Thus in a case like:

open(owner, file1)
open(owner, file2)
close(owner, file2)
close(owner, file2)

the final close won't be recognized as a retransmission.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>

No differences found