Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp950941rwb; Fri, 7 Oct 2022 06:21:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6timT13qsxvDzfjq9/3WzOlpHTwwgNgwllppHrPUMKFNsMIBWnyFgEC4URdeJgul4Rrvy6 X-Received: by 2002:a17:906:2bc7:b0:72f:dc70:a3c6 with SMTP id n7-20020a1709062bc700b0072fdc70a3c6mr4027691ejg.645.1665148918632; Fri, 07 Oct 2022 06:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665148918; cv=none; d=google.com; s=arc-20160816; b=in2b3fYORyr2IbDfDRHoX7jWNLgk6559+7d+bOH7cEPB+Bp6rlBpeXMHjZF+z7QR5G pqR+HTENunkj0zZ8+73Vd0T3vzyDdPh8ZkbbjTjhyFXRA7q0ITOyPeDmWYtDSQt1xYnA iZBjzRvRhuSFt/NFAWtoDUOneSmm81tpAjtZ/ZFga4j2ZuMRG7hjigDfwQTwXVu8teTO LK97PoYsNpXfsPfFHcxz3UwzNN2t6NS+LM4gfsPv05rmKt9p3b98Ngfl+0Nlt9InBuOf 9FM6aMYuFKl1kF1dLM8BSUFqFjJ/3fofdwalSv2ZCeSZSQ29Ce2TUyGRuHy83w4v2sZG GioA== 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=Ly72EudsLukMO2dd7teQvA/gicM54X39CWKDfuaTcAE=; b=ppRp2ki3EZ77W5Hs2g4PUkP2VIRDuetYaih35fE1+tV4A2HpmFGffdwB60xGEJd2GO W/AAsTb3aHiQwaubXRA2TCA3dv5lBclNy0/lPw/XFbF+UoZpgAm6WMDPmh9D1ShNBART p6WcZ7o6HqFTXlMTp3/V4qjLPDMmb3TrgAkEykwHLgUVLhtyixrLhGhjBYU1JoU13A1C hKCJtu02Rl2ShusyC+SXuUzLkzru582gTLkQblwZizvKtnMcCOdoHR7rVitNCGwG95qx r0B03fwOBDpBJjoysIZimLJnbghlimAOB8b1rSJxfWowqCFrfnEMuB4hSxHHdEtNbHbn wXTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UTJ7Yw56; 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 dz17-20020a0564021d5100b00459fb0c1d9esi824084edb.549.2022.10.07.06.21.23; Fri, 07 Oct 2022 06:21:58 -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=UTJ7Yw56; 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 S229716AbiJGNT1 (ORCPT + 99 others); Fri, 7 Oct 2022 09:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbiJGNTX (ORCPT ); Fri, 7 Oct 2022 09:19:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 437A1D01A6 for ; Fri, 7 Oct 2022 06:19:22 -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 ams.source.kernel.org (Postfix) with ESMTPS id E166EB80C8D for ; Fri, 7 Oct 2022 13:19:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 676D4C433D6; Fri, 7 Oct 2022 13:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665148759; bh=HFyzY5egj8J/05b8eTIJfnyd4tuefR1oBrDEqqR9x+Y=; h=Subject:From:To:Date:In-Reply-To:References:From; b=UTJ7Yw56ySCH3xzj3I7dOVHYxF+5h/dEecrcWJ8q+N+q8d/LAVooH5eA2xZwQhC9B Z2IeM81JTQRhpkQjgwyg6f+hEygqJFj7LMAWMOjhilORZg4cDW5P/baNSfwIJx2yPV P/LaAf7w2fo0Ps8GOCPtD4QWidhH/3JJkLqLQ7PtpyvaUbTcGhOl1vL1TSNZKzWtP8 ZQ7KzL0T5qok3dcgkApPycLVUuaM3EOAXro5mumCh7YJWYh7lMVpdMOach0FKJ4wZM NzrSwIQ8ikGEdm8ukEnxPXi5bPM0FmPDNLnsOlX7+syANy9LjMvDpMfOLjAGEzTe0q INo04mCIgQiZQ== Message-ID: <3376ba7410b6211899c12872195a97219230823c.camel@kernel.org> Subject: Re: [PATCH v2 0/9] A course adjustment, maybe... From: Jeff Layton To: Chuck Lever , linux-nfs@vger.kernel.org Date: Fri, 07 Oct 2022 09:19:18 -0400 In-Reply-To: <166507275951.1802.13184584115155050247.stgit@manet.1015granger.net> References: <166507275951.1802.13184584115155050247.stgit@manet.1015granger.net> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 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 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 Thu, 2022-10-06 at 12:20 -0400, Chuck Lever wrote: > I'm proposing this series as the first NFSD-related patchset to go > into v6.2 (for-next), though I haven't opened that yet. >=20 > For quite some time, we've been encouraged to disable filecache > garbage collection for NFSv4 files, and I think I found a surgical > way to do just that. That is presented in "NFSD: Add an NFSD_FILE_GC > flag to enable nfsd_file garbage collection". >=20 > Comments and opinions are welcome. >=20 > Changes since RFC: > - checking nfs4_files for inode aliases is now done only on hash > insertion > - the nfs4_file reference count is now bumped only while the RCU > read lock is held > - comments and function names have been revised and clarified >=20 > I haven't updated the new @want_gc parameter... jury is still out. >=20 It was just a nit I noticed since it looked like it was being used as a bool. If you think it needs to be an int, then so be it. > --- >=20 > Chuck Lever (7): > NFSD: Pass the target nfsd_file to nfsd_commit() > NFSD: Revert "NFSD: NFSv4 CLOSE should release an nfsd_file immedia= tely" > NFSD: Add an NFSD_FILE_GC flag to enable nfsd_file garbage collecti= on > NFSD: Use const pointers as parameters to fh_ helpers. > NFSD: Use rhashtable for managing nfs4_file objects > NFSD: Clean up nfs4_preprocess_stateid_op() call sites > NFSD: Trace delegation revocations >=20 > Jeff Layton (2): > nfsd: fix nfsd_file_unhash_and_dispose > nfsd: rework hashtable handling in nfsd_do_file_acquire >=20 >=20 > fs/nfsd/filecache.c | 165 +++++++++++++++--------------- > fs/nfsd/filecache.h | 4 +- > fs/nfsd/nfs3proc.c | 10 +- > fs/nfsd/nfs4proc.c | 42 ++++---- > fs/nfsd/nfs4state.c | 241 ++++++++++++++++++++++++++++++-------------- > fs/nfsd/nfsfh.h | 10 +- > fs/nfsd/state.h | 5 +- > fs/nfsd/trace.h | 58 ++++++++++- > fs/nfsd/vfs.c | 19 ++-- > fs/nfsd/vfs.h | 3 +- > 10 files changed, 351 insertions(+), 206 deletions(-) I been doing some testing with this and it seems to be working well. You can add: Tested-by: Jeff Layton