]> git.karo-electronics.de Git - linux-beck.git/commitdiff
SUNRPC: remove rpcbind clients creation during service registering
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Tue, 25 Oct 2011 11:17:38 +0000 (14:17 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Oct 2011 11:20:35 +0000 (13:20 +0200)
We don't need this code since rpcbind clients are creating during RPC service
creation.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpcb_clnt.c

index c24626537a7daea2e6226f29005e80d4a4c68f8f..e913039133a92aaae6f47a4a901eacb1fd75c78e 100644 (file)
@@ -431,11 +431,6 @@ int rpcb_register(u32 prog, u32 vers, int prot, unsigned short port)
        struct rpc_message msg = {
                .rpc_argp       = &map,
        };
-       int error;
-
-       error = rpcb_create_local();
-       if (error)
-               return error;
 
        dprintk("RPC:       %sregistering (%u, %u, %d, %u) with local "
                        "rpcbind\n", (port ? "" : "un"),
@@ -571,11 +566,7 @@ int rpcb_v4_register(const u32 program, const u32 version,
        struct rpc_message msg = {
                .rpc_argp       = &map,
        };
-       int error;
 
-       error = rpcb_create_local();
-       if (error)
-               return error;
        if (rpcb_local_clnt4 == NULL)
                return -EPROTONOSUPPORT;