diff options
author | Trond Myklebust <trondmy@gmail.com> | 2018-10-01 17:41:44 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-10-03 18:32:59 +0300 |
commit | 608a0ab2f54ab0e301ad76a41aad979ea0d02670 (patch) | |
tree | 26382fa9fd57a2f549fb991c067c72257a2b2b61 /include/linux/sunrpc | |
parent | 30382d6ce593f863292cd7c026a79077c4e7280f (diff) | |
download | linux-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')
-rw-r--r-- | include/linux/sunrpc/svcauth.h | 1 |
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; }; /* |