Commit ed06fce0 authored by Trond Myklebust's avatar Trond Myklebust

SUNRPC: RPC level errors should set task->tk_rpc_status

Fix up a case in call_encode() where we're failing to set
task->tk_rpc_status when an RPC level error occurred.

Fixes: 9c5948c2 ("SUNRPC: task should be exit if encode return EKEYEXPIRED more times")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent fcfc8be1
...@@ -1902,7 +1902,7 @@ call_encode(struct rpc_task *task) ...@@ -1902,7 +1902,7 @@ call_encode(struct rpc_task *task)
break; break;
case -EKEYEXPIRED: case -EKEYEXPIRED:
if (!task->tk_cred_retry) { if (!task->tk_cred_retry) {
rpc_exit(task, task->tk_status); rpc_call_rpcerror(task, task->tk_status);
} else { } else {
task->tk_action = call_refresh; task->tk_action = call_refresh;
task->tk_cred_retry--; task->tk_cred_retry--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment