summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc/svcauth.h
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2018-10-01 17:41:44 +0300
committerJ. Bruce Fields <bfields@redhat.com>2018-10-03 18:32:59 +0300
commit608a0ab2f54ab0e301ad76a41aad979ea0d02670 (patch)
tree26382fa9fd57a2f549fb991c067c72257a2b2b61 /include/linux/sunrpc/svcauth.h
parent30382d6ce593f863292cd7c026a79077c4e7280f (diff)
downloadlinux-608a0ab2f54ab0e301ad76a41aad979ea0d02670.tar.xz
SUNRPC: Add lockless lookup of the server's auth domain
Avoid taking the global auth_domain_lock in most lookups of the auth domain by adding an RCU protected lookup. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc/svcauth.h')
-rw-r--r--include/linux/sunrpc/svcauth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcauth.h b/include/linux/sunrpc/svcauth.h
index 04e404a07882..3e53a6e2ada7 100644
--- a/include/linux/sunrpc/svcauth.h
+++ b/include/linux/sunrpc/svcauth.h
@@ -82,6 +82,7 @@ struct auth_domain {
struct hlist_node hash;
char *name;
struct auth_ops *flavour;
+ struct rcu_head rcu_head;
};
/*