diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 5d3fe7b22488..52429b1ffcc1 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -904,10 +904,8 @@ call_encode(struct rpc_task *task) | |||
904 | if (encode == NULL) | 904 | if (encode == NULL) |
905 | return; | 905 | return; |
906 | 906 | ||
907 | lock_kernel(); | ||
908 | task->tk_status = rpcauth_wrap_req(task, encode, req, p, | 907 | task->tk_status = rpcauth_wrap_req(task, encode, req, p, |
909 | task->tk_msg.rpc_argp); | 908 | task->tk_msg.rpc_argp); |
910 | unlock_kernel(); | ||
911 | if (task->tk_status == -ENOMEM) { | 909 | if (task->tk_status == -ENOMEM) { |
912 | /* XXX: Is this sane? */ | 910 | /* XXX: Is this sane? */ |
913 | rpc_delay(task, 3*HZ); | 911 | rpc_delay(task, 3*HZ); |
@@ -1238,10 +1236,8 @@ call_decode(struct rpc_task *task) | |||
1238 | task->tk_action = rpc_exit_task; | 1236 | task->tk_action = rpc_exit_task; |
1239 | 1237 | ||
1240 | if (decode) { | 1238 | if (decode) { |
1241 | lock_kernel(); | ||
1242 | task->tk_status = rpcauth_unwrap_resp(task, decode, req, p, | 1239 | task->tk_status = rpcauth_unwrap_resp(task, decode, req, p, |
1243 | task->tk_msg.rpc_resp); | 1240 | task->tk_msg.rpc_resp); |
1244 | unlock_kernel(); | ||
1245 | } | 1241 | } |
1246 | dprintk("RPC: %5u call_decode result %d\n", task->tk_pid, | 1242 | dprintk("RPC: %5u call_decode result %d\n", task->tk_pid, |
1247 | task->tk_status); | 1243 | task->tk_status); |