Skip to content

Commit b4250dd

Browse files
olgakorn1chucklever
authored andcommitted
NFSD: fix error handling in NFSv4.0 callbacks
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
1 parent 614c975 commit b4250dd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/nfsd/nfs4callback.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,7 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata)
11891189
switch (task->tk_status) {
11901190
case -EIO:
11911191
case -ETIMEDOUT:
1192+
case -EACCES:
11921193
nfsd4_mark_cb_down(clp, task->tk_status);
11931194
}
11941195
break;

0 commit comments

Comments
 (0)