mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
NFSD: fix error handling in NFSv4.0 callbacks
[ Upstream commit b4250dd868 ]
When the server tries to do a callback and a client fails it due to
authentication problems, we need the server to set callback down
flag in RENEW so that client can recover.
Suggested-by: Bruce Fields <bfields@redhat.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Link: https://lore.kernel.org/linux-nfs/FB84E90A-1A03-48B3-8BF7-D9D10AC2C9FE@oracle.com/T/#t
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
73df108e3a
commit
540a1ebf3c
@@ -1189,6 +1189,7 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata)
|
||||
switch (task->tk_status) {
|
||||
case -EIO:
|
||||
case -ETIMEDOUT:
|
||||
case -EACCES:
|
||||
nfsd4_mark_cb_down(clp, task->tk_status);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user