summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2019-10-22 18:29:37 +0200
committerJ. Bruce Fields <bfields@redhat.com>2019-11-08 18:32:59 +0100
commit20428a8047eac2fe3b493b454232dfd18d7f3d34 (patch)
tree8f79967c452a2d20db935a83e92b20964724123b /fs/nfsd/nfs4callback.c
parentnfsd: Fix races between nfsd4_cb_release() and nfsd4_shutdown_callback() (diff)
downloadlinux-20428a8047eac2fe3b493b454232dfd18d7f3d34.tar.xz
linux-20428a8047eac2fe3b493b454232dfd18d7f3d34.zip
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/nfs4callback.c')
-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);
}