projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90c5755
)
SUNRPC: Make rpc_clone take a reference instead of using cl_count
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 14 Jun 2007 20:40:32 +0000
(16:40 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:29 +0000
(23:40 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/clnt.c
b/net/sunrpc/clnt.c
index 34662dfa9cc0a35e8255f2203aad0e04f565d6ce..613c10e4ac31f0a4710a290e18e0a0cdedf0685c 100644
(file)
--- a/
net/sunrpc/clnt.c
+++ b/
net/sunrpc/clnt.c
@@
-279,7
+279,7
@@
rpc_clone_client(struct rpc_clnt *clnt)
if (err != 0)
goto out_no_path;
new->cl_parent = clnt;
-
atomic_inc(&clnt->cl_count
);
+
kref_get(&clnt->cl_kref
);
new->cl_xprt = xprt_get(clnt->cl_xprt);
/* Turn off autobind on clones */
new->cl_autobind = 0;
@@
-337,7
+337,7
@@
rpc_free_client(struct kref *kref)
rpc_put_mount();
}
if (clnt->cl_parent != clnt) {
- rpc_
destroy
_client(clnt->cl_parent);
+ rpc_
release
_client(clnt->cl_parent);
goto out_free;
}
if (clnt->cl_server != clnt->cl_inline_name)