mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
[PATCH] knfsd: nfsd4: nfsd4_probe_callback cleanup
Some obvious cleanup. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5e8d5c2948
commit
541e0e0981
@ -441,8 +441,9 @@ nfsd4_probe_callback(struct nfs4_client *clp)
|
|||||||
goto out_clnt;
|
goto out_clnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the task holds a reference to the nfs4_client struct */
|
|
||||||
cb->cb_client = clnt;
|
cb->cb_client = clnt;
|
||||||
|
|
||||||
|
/* the task holds a reference to the nfs4_client struct */
|
||||||
atomic_inc(&clp->cl_count);
|
atomic_inc(&clp->cl_count);
|
||||||
|
|
||||||
msg.rpc_cred = nfsd4_lookupcred(clp,0);
|
msg.rpc_cred = nfsd4_lookupcred(clp,0);
|
||||||
@ -460,13 +461,12 @@ nfsd4_probe_callback(struct nfs4_client *clp)
|
|||||||
out_rpciod:
|
out_rpciod:
|
||||||
atomic_dec(&clp->cl_count);
|
atomic_dec(&clp->cl_count);
|
||||||
rpciod_down();
|
rpciod_down();
|
||||||
|
cb->cb_client = NULL;
|
||||||
out_clnt:
|
out_clnt:
|
||||||
rpc_shutdown_client(clnt);
|
rpc_shutdown_client(clnt);
|
||||||
goto out_err;
|
|
||||||
out_err:
|
out_err:
|
||||||
dprintk("NFSD: warning: no callback path to client %.*s\n",
|
dprintk("NFSD: warning: no callback path to client %.*s\n",
|
||||||
(int)clp->cl_name.len, clp->cl_name.data);
|
(int)clp->cl_name.len, clp->cl_name.data);
|
||||||
cb->cb_client = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user