Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2833927ybx; Fri, 8 Nov 2019 09:59:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyTri77gw/rOZROLa11B0uLwKjR037wnxbnV3FXNIl03ajTeHc/nKeVH416RCO1djybFI+H X-Received: by 2002:a17:907:10d6:: with SMTP id rv22mr10218879ejb.331.1573235962152; Fri, 08 Nov 2019 09:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573235962; cv=none; d=google.com; s=arc-20160816; b=D/DLP2EEzK0gfdlLYax+J7QfRrGV5N28eH9JNBeWuH0hS2P/+sQLJ1oKu78JX7GPig 31cjb4x7SH/O+kF73veKOPX5aYnrfbReiIDE1cK1yY1X4bYM7iK9+onjf5nT8YXddOdL N5TDPfDcDJPzWJUtwdWcdbA4Gt4R72kxF1RQd/r1PyoOlRpZ7C7G3d86RvHAuiVauMi6 zXOupwGOPsY4di/EEzRytWCH9w5zsldu85yhXWAhbRZLFWNnsj1TjJ43PNDycbYer/Mm qw/rHxfhU7kn0qRWoe6sJ1pLm5VG8gavaEgtdpH15UIm0BSFws7gqi3z1tQHWeHp4Ijg ROaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5NJSAXIr9qFU+iofDbFNbEA9I2SkSq5BxR+PnpSTGv8=; b=f4FQELW9b5S5NuZreTpZIqi9QEkFLW81Kzwus1Rtz82S++fDHhih6WXqelxWYHMO6y S8Xsux1U2YD8aj7veXTm4c+XP110R0oZUImSpXNDIX4JSjB7m/6NRXFRR/1PLCQEiHkS KgsTpZCfhzRmDOkzHZ2DX+bNchfA9w9kR1/WKW8vzpU7gqdPim1T/Ei0m2o2s46e9CA1 ObOtKwxZAhyWR40hMa4X4bh3pvpf2nZzmvq1aJpPK9/y/8c0Ca367ZbD+RFqR7oZH6kT vQ+f/X28ErmNUBaWHETkP0diTbn0EkDECkf+IjqzO4uLoH6nt3tsuOD9TLb4+uyDw5sv Q6BQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si3993236ejb.174.2019.11.08.09.58.57; Fri, 08 Nov 2019 09:59:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728914AbfKHR4A (ORCPT + 99 others); Fri, 8 Nov 2019 12:56:00 -0500 Received: from fieldses.org ([173.255.197.46]:36458 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727296AbfKHR4A (ORCPT ); Fri, 8 Nov 2019 12:56:00 -0500 Received: by fieldses.org (Postfix, from userid 2815) id B41801C15; Fri, 8 Nov 2019 12:55:59 -0500 (EST) Date: Fri, 8 Nov 2019 12:55:59 -0500 From: "J. Bruce Fields" To: "J. Bruce Fields" Cc: Trond Myklebust , "linux-nfs@vger.kernel.org" Subject: [PATCH] nfsd: mark cb path down on unknown errors Message-ID: <20191108175559.GD758@fieldses.org> References: <20191023214318.9350-1-trond.myklebust@hammerspace.com> <20191025145147.GA16053@pick.fieldses.org> <97f56de86f0aeafb56998023d0561bb4a6233eb8.camel@hammerspace.com> <20191025152119.GC16053@pick.fieldses.org> <20191025153336.GA20283@fieldses.org> <20191029214705.GA29280@fieldses.org> <20191107222712.GB10806@fieldses.org> <20191108175109.GA758@fieldses.org> <20191108175228.GB758@fieldses.org> <20191108175417.GC758@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191108175417.GC758@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: "J. Bruce Fields" Date: Tue, 22 Oct 2019 12:29:37 -0400 An unexpected error is probably a sign that something is wrong with the callback path. Signed-off-by: J. Bruce Fields --- fs/nfsd/nfs4callback.c | 1 + 1 file changed, 1 insertion(+) Also, while we're here....--b. 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); } -- 2.23.0