nfsd4: hash lockowners to simplify RELEASE_LOCKOWNER
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 7 Nov 2011 21:58:18 +0000 (16:58 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Nov 2011 02:10:48 +0000 (21:10 -0500)
Hash lockowners on just the owner string rather than on (owner, inode).
This makes the owner-string lookup needed for RELEASE_LOCKOWNER simpler
(currently it's doing at a linear search through the entire hash
table!).  That may come at the expense of making (owner, inode) lookups
more expensive if a client reuses the same lockowner across multiple
files.  We might add a separate lookup for that.

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

No differences found