Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5088678rwb; Mon, 8 Aug 2022 11:59:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7W+8MZym8LumoCe73/nWe9q1IFZ4jrOnpqp56bcx11qNkXDdUNJpIpmGsyk177GvJ9OB8x X-Received: by 2002:a17:906:216:b0:711:f623:8bb0 with SMTP id 22-20020a170906021600b00711f6238bb0mr14842360ejd.174.1659985176319; Mon, 08 Aug 2022 11:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659985176; cv=none; d=google.com; s=arc-20160816; b=DTS47D7pt3N3IJVt4RDWG34cV+qC8lhuo9w3bWCeSsIKDtFFDVC+0K1geUHzE057BB +iZjAoq59QEu9jLFqx4lhkLe/kzjQLZ9TJidRGPs3qwD1dVjw4vCapaO/EEj7Fjr7NsS qlQZSNyvHrvybgU0cfjKYOpGDARjBRLni+OaJ0O74nlF6/p6M6Ohe/0yoA73Ys8Byugg +A/kLyP/7/RJ0epp/PTBdw1xZ1LQk1+mspvVKA6BcR0T4ReEeR3befsytlMoHXuxU9rQ UjxmZfzyLLL5y0/HK9zcrtPD33A00IQtDZ6CKExA/AC/FmF41sjxPQyiqQ2WaJyk66OO JyIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:dkim-signature; bh=aCSeqlftSsSy3WiY+OMhCrHdrlsBl4R5PyJeSV0q2so=; b=xBuqubLrpyrSkO4FLiLUoP7LaM8sdjrHNJlSffIlg1m/CYC/Q1nD2razQDgLONxm1F hLQCCbNOdaxNxvC3F24u/S7Rlp6AR5UUsbBIibJXUG1GUtVZhMc7PCqcft5/J6tKz0fp 6GRnXuQP7AT564Uq+Zpcr0kgg782Eq0xjaO8an768f6cW5tOkCt0+krfWzBcmqv7FqEA ue1goLUHq5dJnOi3N79LalWNOCsCVuDo+bK2Qy2z8Dmkwa7xGgKp0E2w4DG8md7ZqzUl QoYpXesRvlqRHJRBb4LEgiziPltaYBBH1Wn6UcteJpOoRA6o3yTWp3QdG0zttxrqi9S8 hvlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OHhvlRsQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a05640234c100b0043bd06fa45asi7798655edc.371.2022.08.08.11.58.42; Mon, 08 Aug 2022 11:59:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OHhvlRsQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243566AbiHHSsd (ORCPT + 99 others); Mon, 8 Aug 2022 14:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236713AbiHHSsb (ORCPT ); Mon, 8 Aug 2022 14:48:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00DA433E for ; Mon, 8 Aug 2022 11:48:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 920EA6123A for ; Mon, 8 Aug 2022 18:48:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B209DC433C1; Mon, 8 Aug 2022 18:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659984510; bh=3g4jQzoKmYNdHVCFSwW7DzZTZFECERPgub8in86+Zw8=; h=Subject:From:To:Date:In-Reply-To:References:From; b=OHhvlRsQIts/NrPS0KIwM0Z7+jfpz4Cf16KsOb6S/J+4CERkVq8hhWlSp3yBcLSCn IfWwn//26+i5Q4VvFR7sEqPwfhB0nBX9ZDmsea+3OkZ9KwkwadiD6qHvUZ+Gzk5UTr 7orktKVWtORanTS1Sbk940O2CyXTH315+FdCmFjrtt3aO4XUs88AtKFf5xFvXTH848 2UCI6nRJX5BTqcVK7arVJtM0FmC7qo/OsOu5W6zuon46ln4EuzGOi6em/o6ZsY8ru1 wA5kfM9OgbyRZfzbxj1Q2cL1y6LSZBphwZoY+xEU5/8Z0ZufaTpRAE0vciEOaBMnvl YpRedEH0BHkCg== Message-ID: <55bc0656a841cc1229d2b1594d4f9eeabfd00ae5.camel@kernel.org> Subject: Re: [PATCH v3 0/7] Wait for DELEGRETURN before returning NFS4ERR_DELAY From: Jeff Layton To: Chuck Lever , linux-nfs@vger.kernel.org Date: Mon, 08 Aug 2022 14:48:28 -0400 In-Reply-To: <165996657035.2637.4745479232455341597.stgit@manet.1015granger.net> References: <165996657035.2637.4745479232455341597.stgit@manet.1015granger.net> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, 2022-08-08 at 09:52 -0400, Chuck Lever wrote: > This RFC series adds logic to the Linux NFS server to make it wait a > few moments for clients to return a delegation before replying with > NFS4ERR_DELAY. There are two main benefits: >=20 > - This improves responsiveness when a delegated file is accessed > from another client > - This removes an unnecessary latency if a client has neglected to > return a delegation before attempting a RENAME or SETATTR >=20 > This series is incomplete: > - There are likely other operations that can benefit (eg. OPEN) >=20 > This series applies against v5.19. >=20 > Changes since v2: > - Wake immediately after client sends DELEGRETURN > - More tracepoint improvements >=20 > Changes since RFC: > - Eliminate spurious console messages on the server > - Wait for DELEGRETURN for RENAME operations ^^^^ Does REMOVE need similar treatment? Does the Apple client return a delegation before attempting to unlink? > - Add CB done tracepoints > - Rework the retry loop >=20 > --- >=20 > Chuck Lever (7): > NFSD: Instrument fh_verify() > NFSD: Replace dprintk() call site in fh_verify() > NFSD: Trace NFSv4 COMPOUND tags > NFSD: Add tracepoints to report NFSv4 callback completions > NFSD: Add a mechanism to wait for a DELEGRETURN > NFSD: Make nfsd4_setattr() wait before returning NFS4ERR_DELAY > NFSD: Make nfsd4_rename() wait before returning NFS4ERR_DELAY >=20 >=20 > fs/nfsd/nfs4layouts.c | 2 +- > fs/nfsd/nfs4proc.c | 56 +++++++++++--- > fs/nfsd/nfs4state.c | 35 +++++++++ > fs/nfsd/nfsd.h | 1 + > fs/nfsd/nfsfh.c | 13 +--- > fs/nfsd/trace.h | 171 ++++++++++++++++++++++++++++++++++++++++-- > fs/nfsd/xdr4.h | 2 + > 7 files changed, 251 insertions(+), 29 deletions(-) >=20 > -- > Chuck Lever >=20 The new tracepoints are nice and the patchset makes sense. You can add: Reviewed-by: Jeff Layton