]> err.no Git - linux-2.6/blobdiff - net/sunrpc/clnt.c
[NET] CORE: Fix whitespace errors.
[linux-2.6] / net / sunrpc / clnt.c
index 25bbf2d7f603c6c5c3c4a89ccf1936de49c305e2..52429b1ffcc1d8d33bf7cf116bab5bfa0ceb052c 100644 (file)
@@ -236,6 +236,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)
        struct rpc_clnt *clnt;
        struct rpc_xprtsock_create xprtargs = {
                .proto = args->protocol,
+               .srcaddr = args->saddress,
                .dstaddr = args->address,
                .addrlen = args->addrsize,
                .timeout = args->timeout
@@ -903,10 +904,8 @@ call_encode(struct rpc_task *task)
        if (encode == NULL)
                return;
 
-       lock_kernel();
        task->tk_status = rpcauth_wrap_req(task, encode, req, p,
                        task->tk_msg.rpc_argp);
-       unlock_kernel();
        if (task->tk_status == -ENOMEM) {
                /* XXX: Is this sane? */
                rpc_delay(task, 3*HZ);
@@ -1237,10 +1236,8 @@ call_decode(struct rpc_task *task)
        task->tk_action = rpc_exit_task;
 
        if (decode) {
-               lock_kernel();
                task->tk_status = rpcauth_unwrap_resp(task, decode, req, p,
                                                      task->tk_msg.rpc_resp);
-               unlock_kernel();
        }
        dprintk("RPC: %5u call_decode result %d\n", task->tk_pid,
                        task->tk_status);