]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
nfsd: mark cb path down on unknown errors
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 22 Oct 2019 16:29:37 +0000 (12:29 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 8 Nov 2019 17:32:59 +0000 (12:32 -0500)
An unexpected error is probably a sign that something is wrong with the
callback path.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c

index 67d24a53608266df091d883e65751babf4fcf073..c94768b096a3d7f4ec5b76de376db91157e6e8db 100644 (file)
@@ -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);
        }