diff options
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/clnt.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 534274056329..702ede309b06 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -710,9 +710,16 @@ call_encode(struct rpc_task *task) | |||
710 | rpc_exit(task, -EIO); | 710 | rpc_exit(task, -EIO); |
711 | return; | 711 | return; |
712 | } | 712 | } |
713 | if (encode != NULL) | 713 | if (encode == NULL) |
714 | task->tk_status = rpcauth_wrap_req(task, encode, req, p, | 714 | return; |
715 | task->tk_msg.rpc_argp); | 715 | |
716 | task->tk_status = rpcauth_wrap_req(task, encode, req, p, | ||
717 | task->tk_msg.rpc_argp); | ||
718 | if (task->tk_status == -ENOMEM) { | ||
719 | /* XXX: Is this sane? */ | ||
720 | rpc_delay(task, 3*HZ); | ||
721 | task->tk_status = -EAGAIN; | ||
722 | } | ||
716 | } | 723 | } |
717 | 724 | ||
718 | /* | 725 | /* |