Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp523416rwi; Mon, 31 Oct 2022 04:40:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6IKBdIUZwggLd4NEAj8nviVvmhch6l3p4cBdDcctabgE8GiK9fhDG3R8f7cHwGbyrEkEa3 X-Received: by 2002:aa7:cc13:0:b0:453:52dc:1bbf with SMTP id q19-20020aa7cc13000000b0045352dc1bbfmr13423007edt.30.1667216410602; Mon, 31 Oct 2022 04:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667216410; cv=none; d=google.com; s=arc-20160816; b=IUx+Wa5WmvFQGtdILkM4ab5lsrgOHpEu9U6nOSwN/1oI8v0mZFzcpaJ2RhWTmYdkup NFbJSvpLVyJYIg7lxKvhAFTVCC45WVO7tyhgS5iHMsHmx3VeQG+FW1Oiq3XmqOBx1M7N fWaQE1ez/98Gg+q0yT5+lDt13Of/EpOn7GRr6DaImLRANrExvRzR4kxkBKuyOJlVnlZ+ YCb/1opk9pHgveVjpTv54blblihFL+pnLoH8Vdi4KGFdMzit2QZAWT+mRG3ZhMXEQXLj bNSSrcACfPeemLoCCfUbZHaTYfRKLRp0nyS8YfmR1CEpxVyoQTwUWu3uhZSNxMXGlW1H NjEw== 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=+QSrXApuFRgIZD/NikddJq9GCAOwUHvCas5Ruu8E/pU=; b=QYuh3DttFKQREDML1Tx4pAIvs4RcaONaPCV+GJo/N8MSwFLPRlDc+A1DsljvQqr11D QO3ME1Shn0b4CiHgNwg+LL2b1yBawNq7XAmwYRxa4YG2K/mrp/zuEQ5BFdqYICiQ8tw5 lRCo4lNsecIK3YzKfcL2M8OxY6+wkSoyZfl3IXlVq3nWZCtf+j+5bfDRyY2Jyip7zGKn drMi0FVY1W7P45JVG+Irz+rijdgDvxqou1n8WCnsmK3NiC9Gsaqe8aQxZ1XuSfDfrqE7 dfIHTiuSZUv3j88G63XiH1MSbojfu32LcqYjzbDXAu/mhMF1Mc0pSS4H3x5PlWcg7008 /eaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VxXZTCQe; 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 ds14-20020a170907724e00b00770d9e664f8si8914857ejc.152.2022.10.31.04.39.36; Mon, 31 Oct 2022 04:40:10 -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=VxXZTCQe; 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 S229881AbiJaLhs (ORCPT + 99 others); Mon, 31 Oct 2022 07:37:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiJaLhr (ORCPT ); Mon, 31 Oct 2022 07:37:47 -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 8643BE0A1 for ; Mon, 31 Oct 2022 04:37:45 -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 D5F3560FD6 for ; Mon, 31 Oct 2022 11:37:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4FC7C433D6; Mon, 31 Oct 2022 11:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667216264; bh=XQCQfRdLCVxY3BttRLit/e8edx/LGiitHVt0Z4+xuO0=; h=From:To:Cc:Subject:Date:From; b=VxXZTCQe+vEYwW2zH81Kox6O1t/oYBL+R5Ip+NUMS66z99onieu2+DekWMoShqeci KVwropt36ugr3UoU/rhhRlgR+L9hTtwc9QyqG48m16LuWjvmjqCyMuGznFoNnqpfd0 SapUpNLMql8f/bEBI+z2xzXWPiVj/YJl5c3+U0zZ/Uv6CTksiPC8XhkKXRn8jRtHTx svX5jlvp7TP6HPbGbLxxC5TaYl8/0wVjcmS2k8+KADyl4v4eALUuAR1fDX3xkhMRrZ 4x7coMvC7xs/82juYWBcjPWgAl8Zt8z/h+IaCIESMBZw99WrwcmPAY5k7gHOqm9O7Q jSM+pRDMWluuw== From: Jeff Layton To: chuck.lever@oracle.com Cc: neilb@suse.de, linux-nfs@vger.kernel.org Subject: [PATCH v4 0/5] nfsd: clean up refcounting in the filecache Date: Mon, 31 Oct 2022 07:37:37 -0400 Message-Id: <20221031113742.26480-1-jlayton@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.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 This is a revision of the set that I posted late on Friday. The only real difference is the introduction of a "reorganization" patch that shuffles some of the code in filecache.c around without any functional changes. That should make the functional changes I'm proposing in patch #3 more evident. Jeff Layton (5): nfsd: remove the pages_flushed statistic from filecache nfsd: reorganize filecache.c nfsd: rework refcounting in filecache nfsd: close race between unhashing and LRU addition nfsd: start non-blocking writeback after adding nfsd_file to the LRU fs/nfsd/filecache.c | 385 +++++++++++++++++++++++--------------------- fs/nfsd/filecache.h | 1 + fs/nfsd/trace.h | 5 +- 3 files changed, 207 insertions(+), 184 deletions(-) -- 2.38.1