Commit 25b31f15 authored by Trond Myklebust's avatar Trond Myklebust Committed by Zheng Zengkai
Browse files

SUNRPC: RPC level errors should set task->tk_rpc_status

stable inclusion
from stable-v5.10.140
commit 8be096f018e4d4a4d430c8c87c4009c7024ffb90
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I63FTT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8be096f018e4d4a4d430c8c87c4009c7024ffb90



--------------------------------

[ Upstream commit ed06fce0 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent e1d79e6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment