Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1361235rwi; Thu, 27 Oct 2022 14:57:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6svxjO25salzxTx8RKG6VTJce6XRz6tJtoUoqtGo41tMGaOT84cfFlqO3gmjMFg8n3DjNe X-Received: by 2002:a17:90b:1b03:b0:20d:ac3b:f1dd with SMTP id nu3-20020a17090b1b0300b0020dac3bf1ddmr12329169pjb.121.1666907859983; Thu, 27 Oct 2022 14:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666907859; cv=none; d=google.com; s=arc-20160816; b=vn4/P98ylot++YHJY6BGOFqXPpyz76/j786yHeBkP2X5d4GV8nvlW1Z8N7TKEmdrzu UPxXhXAgAcVMGa6LKVYBKUf/Edew5W7D0Kz6lXTu9JUPXuX1g9BkiusgAtQZgwXA6gCx tzyYzICJwR4dl/zz4uGZS5utfQRrNHxnISz1fUCEiO2WTua5fuaSsNy+u+QTNxMDLFrK 2hRow0KquXJ0tgu7l5QM5xjqwvcI/FEPNK/RoReHB83nK9/gVz5F3ser4JZCQLnW2ouw eCEzsUaMLHPXnhS2FvkyQx24p0nMcn8OZ6asIPZgOnI52CKGSIzTE44QYtxU6Zoj13kD rT7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qXKzfzt4pVqi8UlGcqm+OuLii+rFf6PFtYcN91aQOl4=; b=PstCrWDLNAI5NFtUPjQ+6jqag3I1Ao8Y5FmWllrlSKHuf257w+lXCC2WVaQlefLxho eQkzu6Zl8b4DsDAyfYIFOchldd2r+XpRjEtPKT2KtIvBGf7lwbU5Fq2mF5aNch4qm48R sAoxBbPqv6Psn7ILXxM2px9Z3eSffT2sTt6YzJ54nudFZbiwvV9PMnyeIo1En1Ck6uxR eFaG+XAmaZatxxDfOlZQ2/GisvHztMpRrfVFeSl/7QaktmgjqFZjNA1x2XiQoOyrsTRA 6D3J3wSCU56S1l/6jwjHnd/keBe1BlD6KVgxCt9IsVHMIL1K+8LgvX2YgNRGn2qBmaMI OE1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtBNzZZX; 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 ob11-20020a17090b390b00b00202b984842csi3654785pjb.35.2022.10.27.14.57.23; Thu, 27 Oct 2022 14:57:39 -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=mtBNzZZX; 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 S237115AbiJ0VwW (ORCPT + 99 others); Thu, 27 Oct 2022 17:52:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237102AbiJ0VwR (ORCPT ); Thu, 27 Oct 2022 17:52:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 969DB7B5B1 for ; Thu, 27 Oct 2022 14:52:16 -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 35CF762529 for ; Thu, 27 Oct 2022 21:52:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 348F4C433D6; Thu, 27 Oct 2022 21:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666907535; bh=Ldnh4CzMPar1bojs2BnJNrUiCKGXesB8l3uFOG2n87U=; h=From:To:Cc:Subject:Date:From; b=mtBNzZZXgfeKF9HfvK+rabaPff3dgtnobOo30TzhDJh+VCvNelxSpU1FFrjcBTaAk HLxV4yEuA2nXtj0Ll+NjFxYY6Y23SgR2nPIoo8RbodgHJUEbrh/SmyQc3hJZhIekpa RZWz1wSBMYvnrCf0Y2o84fctcDM2cgFbZpA1p0f0hnyg4UpLZaTZriEagHO2NCKxFj 9Gd+w7AMI6Z6pCzI4o87qizpuu1LNjNmw0ELegprqfdMdZXM1+gxaR7FeN3kK8rCN4 wH2m62KCe6FP8zokYWEBeHIZXoz38mktkPYBFFvviniKp4g/DStjJS8YcxwTRdYDG6 l6yYvR1G+U0Kg== From: Jeff Layton To: chuck.lever@oracle.com Cc: linux-nfs@vger.kernel.org, neilb@suse.de Subject: [PATCH v2 0/3] nfsd: clean up refcounting in filecache Date: Thu, 27 Oct 2022 17:52:10 -0400 Message-Id: <20221027215213.138304-1-jlayton@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 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 This patchset should bring the filecache into closer alignment with what Neil had mentioned here. The first patch cleans up the refcounting, and the second two optimize the "gc" entry handling. This should apply cleanly on top of Chuck's current for-next branch. Jeff Layton (3): nfsd: rework refcounting in filecache nfsd: only keep unused entries on the LRU nfsd: start non-blocking writeback after adding nfsd_file to the LRU fs/nfsd/filecache.c | 331 ++++++++++++++++++++++++-------------------- fs/nfsd/trace.h | 5 +- 2 files changed, 185 insertions(+), 151 deletions(-) -- 2.37.3