mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
NFSv4.1: don't retry BIND_CONN_TO_SESSION on session error
[ Upstream commit1d15d121cc] There is no reason to retry the operation if a session error had occurred in such case result structure isn't filled out. Fixes:dff58530c4("NFSv4.1: fix handling of backchannel binding in BIND_CONN_TO_SESSION") Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8cd30d28da
commit
a9fa7d48a1
@@ -8205,6 +8205,7 @@ nfs4_bind_one_conn_to_session_done(struct rpc_task *task, void *calldata)
|
|||||||
case -NFS4ERR_DEADSESSION:
|
case -NFS4ERR_DEADSESSION:
|
||||||
nfs4_schedule_session_recovery(clp->cl_session,
|
nfs4_schedule_session_recovery(clp->cl_session,
|
||||||
task->tk_status);
|
task->tk_status);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (args->dir == NFS4_CDFC4_FORE_OR_BOTH &&
|
if (args->dir == NFS4_CDFC4_FORE_OR_BOTH &&
|
||||||
res->dir != NFS4_CDFS4_BOTH) {
|
res->dir != NFS4_CDFS4_BOTH) {
|
||||||
|
|||||||
Reference in New Issue
Block a user