summaryrefslogtreecommitdiff
path: root/net/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-08-03 14:55:03 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-08-19 20:32:05 -0400
commited06fce0b034b2e25bd93430f5c4cbb28036cc1a (patch)
treec892bbab2dbbdab2718965968cb88d2f6dcf3ef6 /net/sunrpc
parentfcfc8be1e9cf2f12b50dce8b579b3ae54443a014 (diff)
downloadlwn-ed06fce0b034b2e25bd93430f5c4cbb28036cc1a.tar.gz
lwn-ed06fce0b034b2e25bd93430f5c4cbb28036cc1a.zip
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: 9c5948c24869 ("SUNRPC: task should be exit if encode return EKEYEXPIRED more times") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index b098e707ad41..7d268a291486 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1902,7 +1902,7 @@ call_encode(struct rpc_task *task)
break;
case -EKEYEXPIRED:
if (!task->tk_cred_retry) {
- rpc_exit(task, task->tk_status);
+ rpc_call_rpcerror(task, task->tk_status);
} else {
task->tk_action = call_refresh;
task->tk_cred_retry--;