SUNRPC: Give credential cache a local spinlock

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust
2007-06-24 15:57:57 -04:00
parent 31be5bf15f
commit 9499b4341b
4 changed files with 41 additions and 14 deletions

View File

@@ -213,6 +213,11 @@ unx_validate(struct rpc_task *task, __be32 *p)
return p;
}
void __init rpc_init_authunix(void)
{
spin_lock_init(&unix_cred_cache.lock);
}
const struct rpc_authops authunix_ops = {
.owner = THIS_MODULE,
.au_flavor = RPC_AUTH_UNIX,