SUNRPC: Convert the auth cred cache to use refcount_t
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
@@ -21,7 +21,7 @@ static struct rpc_cred null_cred;
|
||||
static struct rpc_auth *
|
||||
nul_create(const struct rpc_auth_create_args *args, struct rpc_clnt *clnt)
|
||||
{
|
||||
atomic_inc(&null_auth.au_count);
|
||||
refcount_inc(&null_auth.au_count);
|
||||
return &null_auth;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ struct rpc_auth null_auth = {
|
||||
.au_flags = RPCAUTH_AUTH_NO_CRKEY_TIMEOUT,
|
||||
.au_ops = &authnull_ops,
|
||||
.au_flavor = RPC_AUTH_NULL,
|
||||
.au_count = ATOMIC_INIT(0),
|
||||
.au_count = REFCOUNT_INIT(1),
|
||||
};
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user