mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 09:56:46 +00:00
SUNRPC: Fix a typo in unx_create()
We want to set the unix_cred_cache.nextgc on the first call to unx_create(), which should be when unix_auth.au_count === 1 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
3ab9bb7243
commit
5c9cfc828a
@ -41,7 +41,7 @@ unx_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
|
|||||||
{
|
{
|
||||||
dprintk("RPC: creating UNIX authenticator for client %p\n",
|
dprintk("RPC: creating UNIX authenticator for client %p\n",
|
||||||
clnt);
|
clnt);
|
||||||
if (atomic_inc_return(&unix_auth.au_count) == 0)
|
if (atomic_inc_return(&unix_auth.au_count) == 1)
|
||||||
unix_cred_cache.nextgc = jiffies + (unix_cred_cache.expire >> 1);
|
unix_cred_cache.nextgc = jiffies + (unix_cred_cache.expire >> 1);
|
||||||
return &unix_auth;
|
return &unix_auth;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user