summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-11-07 17:40:10 -0500
committerJ. Bruce Fields <bfields@redhat.com>2011-11-15 19:26:08 -0500
commit009673b439cf74d70a486fca0177e274febd81a7 (patch)
tree24c5e96d30a498abc4122e7dc10d98eb338c6a91 /fs/nfsd/state.h
parent353de31b86850309b205a3d4cc1294052471b14d (diff)
downloadlinux-009673b439cf74d70a486fca0177e274febd81a7.tar.gz
linux-009673b439cf74d70a486fca0177e274febd81a7.tar.bz2
linux-009673b439cf74d70a486fca0177e274febd81a7.zip
nfsd4: add a separate (lockowner, inode) lookup
Address the possible performance regression mentioned in "nfsd4: hash lockowners to simplify RELEASE_LOCKOWNER" by providing a separate (lockowner, inode) hash. Really, I doubt this matters much, but I think it's likely we'll change these data structures here and I'd rather that the need for (owner, inode) lookups be well-documented. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index a3cf38476a1b..89c2cd84d796 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -366,6 +366,7 @@ struct nfs4_openowner {
struct nfs4_lockowner {
struct nfs4_stateowner lo_owner; /* must be first element */
+ struct list_head lo_owner_ino_hash; /* hash by owner,file */
struct list_head lo_perstateid; /* for lockowners only */
struct list_head lo_list; /* for temporary uses */
};