diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 2388d83b68ff..657aac630fc9 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -931,7 +931,7 @@ call_reserveresult(struct rpc_task *task) | |||
931 | task->tk_status = 0; | 931 | task->tk_status = 0; |
932 | if (status >= 0) { | 932 | if (status >= 0) { |
933 | if (task->tk_rqstp) { | 933 | if (task->tk_rqstp) { |
934 | task->tk_action = call_allocate; | 934 | task->tk_action = call_refresh; |
935 | return; | 935 | return; |
936 | } | 936 | } |
937 | 937 | ||
@@ -972,7 +972,7 @@ call_reserveresult(struct rpc_task *task) | |||
972 | static void | 972 | static void |
973 | call_allocate(struct rpc_task *task) | 973 | call_allocate(struct rpc_task *task) |
974 | { | 974 | { |
975 | unsigned int slack = task->tk_client->cl_auth->au_cslack; | 975 | unsigned int slack = task->tk_rqstp->rq_cred->cr_auth->au_cslack; |
976 | struct rpc_rqst *req = task->tk_rqstp; | 976 | struct rpc_rqst *req = task->tk_rqstp; |
977 | struct rpc_xprt *xprt = task->tk_xprt; | 977 | struct rpc_xprt *xprt = task->tk_xprt; |
978 | struct rpc_procinfo *proc = task->tk_msg.rpc_proc; | 978 | struct rpc_procinfo *proc = task->tk_msg.rpc_proc; |
@@ -980,7 +980,7 @@ call_allocate(struct rpc_task *task) | |||
980 | dprint_status(task); | 980 | dprint_status(task); |
981 | 981 | ||
982 | task->tk_status = 0; | 982 | task->tk_status = 0; |
983 | task->tk_action = call_refresh; | 983 | task->tk_action = call_bind; |
984 | 984 | ||
985 | if (req->rq_buffer) | 985 | if (req->rq_buffer) |
986 | return; | 986 | return; |
@@ -1042,7 +1042,7 @@ call_refreshresult(struct rpc_task *task) | |||
1042 | dprint_status(task); | 1042 | dprint_status(task); |
1043 | 1043 | ||
1044 | task->tk_status = 0; | 1044 | task->tk_status = 0; |
1045 | task->tk_action = call_bind; | 1045 | task->tk_action = call_allocate; |
1046 | if (status >= 0 && rpcauth_uptodatecred(task)) | 1046 | if (status >= 0 && rpcauth_uptodatecred(task)) |
1047 | return; | 1047 | return; |
1048 | switch (status) { | 1048 | switch (status) { |