diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-24 15:57:57 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:36 -0400 |
commit | 9499b4341b56935f61af9e7e354e7d11e70f5258 (patch) | |
tree | d6ef7a4608e405aef3d270a641fa1f2cbaed6c7d /net/sunrpc/auth_unix.c | |
parent | 31be5bf15f3dafffce110eb1afadccbf2e3067b4 (diff) |
SUNRPC: Give credential cache a local spinlock
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth_unix.c')
-rw-r--r-- | net/sunrpc/auth_unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c index f7ff6ad3259e..205878a3caa5 100644 --- a/net/sunrpc/auth_unix.c +++ b/net/sunrpc/auth_unix.c | |||
@@ -213,6 +213,11 @@ unx_validate(struct rpc_task *task, __be32 *p) | |||
213 | return p; | 213 | return p; |
214 | } | 214 | } |
215 | 215 | ||
216 | void __init rpc_init_authunix(void) | ||
217 | { | ||
218 | spin_lock_init(&unix_cred_cache.lock); | ||
219 | } | ||
220 | |||
216 | const struct rpc_authops authunix_ops = { | 221 | const struct rpc_authops authunix_ops = { |
217 | .owner = THIS_MODULE, | 222 | .owner = THIS_MODULE, |
218 | .au_flavor = RPC_AUTH_UNIX, | 223 | .au_flavor = RPC_AUTH_UNIX, |