summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2019-10-22 12:29:37 -0400
committerJ. Bruce Fields <bfields@redhat.com>2019-11-08 12:32:59 -0500
commit20428a8047eac2fe3b493b454232dfd18d7f3d34 (patch)
tree8f79967c452a2d20db935a83e92b20964724123b /fs/nfsd
parent2bbfed98a4d82ac4e7abfcd4eba40bddfc670b1d (diff)
downloadlinux-20428a8047eac2fe3b493b454232dfd18d7f3d34.tar.bz2
nfsd: mark cb path down on unknown errors
An unexpected error is probably a sign that something is wrong with the callback path. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 67d24a536082..c94768b096a3 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -1126,6 +1126,7 @@ static bool nfsd4_cb_sequence_done(struct rpc_task *task, struct nfsd4_callback
}
break;
default:
+ nfsd4_mark_cb_fault(cb->cb_clp, cb->cb_seq_status);
dprintk("%s: unprocessed error %d\n", __func__,
cb->cb_seq_status);
}