Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp30575pxt; Wed, 11 Aug 2021 13:43:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydg6b50e9E0mDRNZW5UXoMTGL332QMhMrbxndgwrURB7s6taGDQYbKwlIMgDu8rvAGMd2i X-Received: by 2002:a05:6402:289b:: with SMTP id eg27mr1021617edb.90.1628714603450; Wed, 11 Aug 2021 13:43:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628714603; cv=none; d=google.com; s=arc-20160816; b=A9t9WjLpt6TdY/QO3I8EW6aBT5HWIKyvjj9NGn+Kswo/+mwqhr1vUWCn/RjlXS8ZAg It3IT8aQsnGIxv4hjBLbdEogox9R+n5ByBXkmuUJ/Rh7agoKRZ3FNmYvPkhhVfQcdP2c 72zxEKwZhrknkyXaVr8R1SDKtks6SuhsxgJmzfFuOC1wrTT/a0Pe/E56DA+HhKIECyTJ PLXn46hCsk0OoUPpNUpGFjHGi/FNYLGhE4C3HCDyZaNZO4ThNkEr10H7SORMtRnzgVqD W+4k2AbG9+dCIHelNc5vh/ELeVGV3sRs+V7EwAaHU/f7OtqO685dQKhlIcyZYuNG8FxW WwQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lvPNMWCv0dP3Zxb40ZKKhBpDjh1Ul9ZShoz3ndB4UfM=; b=AUi+XgPyl/SYfZ8h6FL4C6yaKLdDaTR28rwCX/Tu9evVHhvu6T8Jb/d0PXDwqSH4Uv lDp7YzI+TLNr2JVtix5Vlm/f/h4rOtzfDnsddQMN05A2wmKQCjrqOGwlY5Hz2Gj/yH4T jifnpzgbm0Y/qhDmB5v2EAxfMUK+J+F3x4msOBMoqfgQe+F43vkFnfaAwrgcsTB63yDb zaZ87NnFVCKUvuobgXfS81Oo0RLTrB1hytdmVgpq9iKunz/9WTjiQMoIKxZCknrCqUoI f7egmVcjwTDTA7sPcUyorhkLfyq5BRGbnTryqvW93vpftvGErb4dCq+ybj6bVwFen875 v4fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=djDWTZlo; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y30si463749edi.44.2021.08.11.13.42.48; Wed, 11 Aug 2021 13:43:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=djDWTZlo; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbhHKUkm (ORCPT + 99 others); Wed, 11 Aug 2021 16:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbhHKUkl (ORCPT ); Wed, 11 Aug 2021 16:40:41 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63939C061765 for ; Wed, 11 Aug 2021 13:40:17 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id x14so5692869edr.12 for ; Wed, 11 Aug 2021 13:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lvPNMWCv0dP3Zxb40ZKKhBpDjh1Ul9ZShoz3ndB4UfM=; b=djDWTZloNdjFK+dmv94ytaxuBY0Xf2jMAp/ygZmMaJ8draP/zJypopAU8EHC0JEklm HxlIktrsC2BqA490Bjvh+jS1F1iWbSCIWmSrD+7G0863zuGFLphpxsc7RtbwQzPrgu+3 T34E3lDHF+dofSUPOSquYveAPd+vzu8HDnUrMIzjDn6l174lQ1tymM9e6254cuwEb8n4 d/49vyZ2Ll6c2irsHWfr1RxeBFcYAUAO8XucBwoStdxJZeQj7eQnIHh5m3PQTX6BN+cc X8ceHeS8pH5LbE9ZxptkwArC9L1rSBoOoV22lw+ogdnevUWAn4cXbbhAKdYMrBbMdqGQ zYLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lvPNMWCv0dP3Zxb40ZKKhBpDjh1Ul9ZShoz3ndB4UfM=; b=PFYPMgV8ynr+UTat7n0l7CFKTkro36rlB4qegQwMUBR79QO+zv82Tl/gAQvCYxIYTh bmqq0mBAoU5ImMe+dd2ip4q3uR3f3X7NCeOaice0eA4Jis1bHa9E6MZCRlXUJg2WGnLL GW1ErqW5OEQAVvw77Y9PzlwPIvEjvPGromjK3VhUO9g6tmNSBwDDXkDDsFRi4UPGx+BA KBNmKM4/nVLmtAnrNRcWv9FtcOKk2ZNjXgHGPRNaP1fcw0bFJ5wg7fBYMlyaYAQRXfWy JT7sTscjXZzOzJskLW06QmeQNIbsOJQjs7g6f9eB002XXnS4szNIlZtxV9R+2WvZ5/XT xnPw== X-Gm-Message-State: AOAM531ldfhUxmuCsDtAkv0CHAWCboj9qKi3gfj2RXK44/WWUOKqha0H Yo/pNwWRm2gCbhmmKQvTEy5DHrSq3d66b4caxQ4= X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr947731edc.67.1628714415897; Wed, 11 Aug 2021 13:40:15 -0700 (PDT) MIME-Version: 1.0 References: <64F9A492-44B9-4057-ABA5-C8202828A8DD@oracle.com> <1b8a24a9-5dba-3faf-8b0a-16e728a6051c@rothenpieler.org> <5DD80ADC-0A4B-4D95-8CF7-29096439DE9D@oracle.com> <0444ca5c-e8b6-1d80-d8a5-8469daa74970@rothenpieler.org> <3AF4F6CA-8B17-4AE9-82E2-21A2B9AA0774@oracle.com> <95DB2B47-F370-4787-96D9-07CE2F551AFD@oracle.com> <20210811201435.GA31574@fieldses.org> In-Reply-To: <20210811201435.GA31574@fieldses.org> From: Olga Kornievskaia Date: Wed, 11 Aug 2021 16:40:04 -0400 Message-ID: Subject: Re: Spurious instability with NFSoRDMA under moderate load To: "J. Bruce Fields" Cc: Chuck Lever III , Bruce Fields , Timo Rothenpieler , Linux NFS Mailing List , Dai Ngo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Aug 11, 2021 at 4:14 PM J. Bruce Fields wrote: > > On Wed, Aug 11, 2021 at 08:01:30PM +0000, Chuck Lever III wrote: > > Probably not just CB_RECALL, but agreed, there doesn't seem to > > be any mechanism that can re-drive callback operations when the > > backchannel is replaced. > > The nfsd4_queue_cb() in nfsd4_cb_release() should queue a work item > to run nfsd4_run_cb_work, which should set up another callback client if > necessary. diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 7325592b456e..ed0e76f7185c 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -1191,6 +1191,7 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata) case -ETIMEDOUT: case -EACCES: nfsd4_mark_cb_down(clp, task->tk_status); + cb->cb_need_restart = true; } break; default: Something like this should requeue and retry the callback? > > But I doubt this is well tested. > > --b.