Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp172863rdb; Thu, 25 Jan 2024 11:29:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGGnPcohzi+EfDW8ODmUYOCA+4Nq8KdeUrH4L5UlaKC3+wteJRLhu6VevNIMcP5wUGHbu/ X-Received: by 2002:a17:906:5657:b0:a31:886f:dea6 with SMTP id v23-20020a170906565700b00a31886fdea6mr112192ejr.2.1706210944703; Thu, 25 Jan 2024 11:29:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706210944; cv=pass; d=google.com; s=arc-20160816; b=0MTBCdU2z++iFJaNMuXb7L1Ut3fsEcqIVujNpMMQZroHxWGqUIsbQIHOAgor3GUVQ8 SmD2E3J+TxNUK86wwheG0kAwn86h6B0ahaOzD+D9+Hb2Ci8ithWF+sFWhHsNXMEMlOSu 9FHur1wVnX5LvyVyPtd7Gr86OBPgOnMXNQy7Q5Po+5pN2Kh/geub35ai02BN5LZwquvn Z1+pnhtVXqi1tL688iNWFessRXBkS9B7k/545YWeA7UhqpTWrnF+Kcn4kCWN8pd23Tbm j4A6Ec/IR+YtjvPRKhJK9itgBemJOv08nDttTLEV2PSkJbUncUSwNzaMUD5R0axe2oWF PcWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=orENYTchG91SsGUpfMPnTLKwMM3GW/2swFPCPjquPdc=; fh=YQcgqpzTb2ndP002M4ArYDUyuK65LyiBbANhSdznvcU=; b=dBbSe1Ypb1OSRcuvaekINnOobLgfYCV7q1+hzrqBAdt8FtyAkUW8wYJe3JXAYcYVgo h4ICJ9EzCCvf2g3raPDaph75ODU1IRJDAle9PmxvD/blGt0YpLxGIQwiM5CUleT9VCIC 6MRHYHZYKUDImwdMpMzW3GWgt66uny9TsNMsB6E5Ho8nFxBoITry5f0++BKBa+NT7N4S 6gSYosSiDCqaB/Pvlxy594wuamicrQYPIoVDRcnf1Nx0V4elxLc2L8iPT007vifq/QtF xV/1UsmRxLcPYGNCMyCR3scEvHhi8lVN1UtNB2ixX40V+I/Ig9L7k4eWy+V0WEjTOzcY uDCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jwllmu97; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jj22-20020a170907985600b00a31c7cc9cf0si537905ejc.384.2024.01.25.11.29.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 11:29:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jwllmu97; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7583B1F22FB1 for ; Thu, 25 Jan 2024 19:29:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04EBF1350EF; Thu, 25 Jan 2024 19:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Jwllmu97" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 808561350CB for ; Thu, 25 Jan 2024 19:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706210938; cv=none; b=C/xcTOuqb03KQ3UBueIwoXdkG1dOiLstq6SP5EgV4IVHamTWyoICBHnhRoZxxxnEAUrWy+sALRn5xzEPWQZopV0Rfh02mCWPXX6QKcTmieIxkYM9xfPk3tWsAsULg8uAFWZw5O8LgUb2iVcwqDZzifkVrVbwscBnmsEj3QA3THk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706210938; c=relaxed/simple; bh=Klf1n72HKz+7NLRCuzAOesPmv7RwpZWk37FL3U1M6Js=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Pp9m4wxGKP12CQK4wHIJNWY6YSuLAvqOT+IwMBQoaQxYZIgLInZdJoQS8QzxK8wCMKzaYiwv7PCZdbBYk0o21E0JcgadhAVf+jMqH4axz5ExEw9EYp7zzdrqj7sqfiSLLTG0k8GHLLdd4SOXfKCBsakrl3IVxp+opTg9N4bSgeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Jwllmu97; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706210936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=orENYTchG91SsGUpfMPnTLKwMM3GW/2swFPCPjquPdc=; b=Jwllmu97Afoi5uxG+dXTWACWVZNnGl5HkJSSte1IvkrLMG2aMgpEq4WkMyyU7/aiLnZ2qe HLppifWetAjmyrc/d0jLyEeVLhugPDxt7myKQiMDJM7wy0a9oSQ8q12yHgaM4TCF2Ktn44 06kwh+tLrT8fZt+DSGz93fkDmLyVNIw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-244-p7iKSKg_ObCnrrZaKzoIWA-1; Thu, 25 Jan 2024 14:28:51 -0500 X-MC-Unique: p7iKSKg_ObCnrrZaKzoIWA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8C23185A58C; Thu, 25 Jan 2024 19:28:50 +0000 (UTC) Received: from [192.168.37.1] (ovpn-0-9.rdu2.redhat.com [10.22.0.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 36F4C40CD14B; Thu, 25 Jan 2024 19:28:48 +0000 (UTC) From: Benjamin Coddington To: David Howells Cc: Gao Xiang , Jeff Layton , Christian Brauner , Matthew Wilcox , Eric Sandeen , v9fs@lists.linux.dev, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Roadmap for netfslib and local caching (cachefiles) Date: Thu, 25 Jan 2024 14:28:46 -0500 Message-ID: In-Reply-To: <524118.1706195224@warthog.procyon.org.uk> References: <520668.1706191347@warthog.procyon.org.uk> <524118.1706195224@warthog.procyon.org.uk> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 On 25 Jan 2024, at 10:07, David Howells wrote: > Benjamin Coddington wrote: > >>> NFS. NFS at the very least needs to be altered to give up the use of >>> PG_private_2. >> >> Forgive what may be a naive question, but where is NFS using PG_private_2? > > aka PG_fscache. > > See nfs_fscache_release_folio() for example where it uses folio_test_fscache() > and folio_wait_fscache(). Ah, thanks! At the end of the netfslib work, will NFS still be able to utilize fscache and still manage its own folios, or are you looking at making fscache be an all-or-nothing depending on the use of netfslib? I think NFS might easily stop using PG_fscache by carrying that information on folio->private (since we're currently stuck with it). Ben