Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8ad7c892e18ff8e6df422eb48ca0f73268ffd632
Commit:     8ad7c892e18ff8e6df422eb48ca0f73268ffd632
Parent:     90c5755ff5111ffdcca10a1e8a823dba29f37b6d
Author:     Trond Myklebust <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 14 16:40:32 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 23:40:29 2007 -0400

    SUNRPC: Make rpc_clone take a reference instead of using cl_count
    
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 net/sunrpc/clnt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 34662df..613c10e 100644
--- 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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to