Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1378021pxb; Wed, 20 Oct 2021 04:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPSZnM/eq1vLD2Wzw8519BNTBC6zVbwcmkIXqwUK2IpkXNDJFvIgDXNJ9Ku065G+qucJVc X-Received: by 2002:a17:906:1749:: with SMTP id d9mr45252161eje.178.1634727657758; Wed, 20 Oct 2021 04:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634727657; cv=none; d=google.com; s=arc-20160816; b=vfgAnOGFaRG/VkwH/VDwMcINHgDw/k/ExTlQSbm4c0GDGN49CVtlDVSVmSMFHdH5mE zqtK9efQPI5Tfol2sf638h10UlETFsYfIdUhtkb9Ub6TWMd88bFLT9sGz/HhvZm9icZh yFOcDAussj8LxO9qlbVBwlH5EolKoUzTAMpoIwe6IZgEqvA5c+MbcjYbQvtORFURkXLq ojDVZRIcdTsYQdIvjieTP1obdyJJKiA/Z8ADdm8wckxCZ6fib388gHxp5oc/zbHrHhXx tRVajvcwVcVtsfg52FQvq5Hrm8uXfpz8MU1fPkw2lL4XaSVtgBSX/8uPwnpK1w4dXq6f 60lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=nznzQGZwFhWi7IrCsZuwpAlnduoRBn7ox7Rs/xNM+f4=; b=uHVBpBcSPIoyctgPvu0pV8q7cx4oy654FPIZDQ0wu8SWsDSR3p63kvgGEdHKdjd7dT 5kGXK/Vth2Kisfgz/HQMummq0ONhc7Y5rCPqTzcnOmW4r6tsDd/FZ3QAHVQgVCU/XZzF 7ljP6//ifwwsR2tRpyJUi6FS5mccyQ82DhyDS6WxYJSuBZG3KLhTyOpV/R6B67RmG8fR JorXNsHqlgZ356POgcC99J8Cx7AJ8iSaZXeZ+eBjomqg335OvtnzzaJ6MAy1CcE6VP98 CJafdzEevxv3DKxj4U48sEyxh1WGCeaeeTgLhTBWivbg+LlpjeESEDxtT5UlmSIgRC3G XiYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bdFPtxKR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z24si2268204edl.444.2021.10.20.04.00.20; Wed, 20 Oct 2021 04:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bdFPtxKR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbhJTLAO (ORCPT + 99 others); Wed, 20 Oct 2021 07:00:14 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60601 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbhJTLAN (ORCPT ); Wed, 20 Oct 2021 07:00:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634727478; 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=nznzQGZwFhWi7IrCsZuwpAlnduoRBn7ox7Rs/xNM+f4=; b=bdFPtxKRLIrv1rBcPp6xxNE4mX4VmDH3I7Dc1/qjaX6BU5PbYtsW0zB2j0tNL9XdB2AFcB 6XGVZX5gPC6LP4+p9YZXXBT+wtyXKQK9hBz89ThcYGZYT2UYvpIfHjKU5SxTmcIEaIFxQC ZgeGsBiTkpYOhpZxq1f8fu0TTDiFnJg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-d8OhdiHCN4OcfUmy5JVW4A-1; Wed, 20 Oct 2021 06:57:53 -0400 X-MC-Unique: d8OhdiHCN4OcfUmy5JVW4A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 09B5D10A8E00; Wed, 20 Oct 2021 10:57:51 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9758360D30; Wed, 20 Oct 2021 10:57:44 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <67f55d920f40bf6c49643af08fe8a5cfc97a9542.camel@kernel.org> References: <67f55d920f40bf6c49643af08fe8a5cfc97a9542.camel@kernel.org> <163456861570.2614702.14754548462706508617.stgit@warthog.procyon.org.uk> <163456871794.2614702.15398637170877934146.stgit@warthog.procyon.org.uk> To: Jeff Layton Cc: dhowells@redhat.com, linux-cachefs@redhat.com, Dave Wysochanski , Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, Ilya Dryomov , ceph-devel@vger.kernel.org, Steve French , linux-cifs@vger.kernel.org, Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , v9fs-developer@lists.sourceforge.net, Trond Myklebust , Matthew Wilcox , Alexander Viro , Omar Sandoval , Linus Torvalds , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/67] nfs, cifs, ceph, 9p: Disable use of fscache prior to its rewrite MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3164228.1634727463.1@warthog.procyon.org.uk> Date: Wed, 20 Oct 2021 11:57:43 +0100 Message-ID: <3164229.1634727463@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Jeff Layton wrote: > The typical way to do this would be to rebrand the existing FSCACHE > Kconfig symbols into FSCACHE_OLD and then build the new fscache > structure such that it exists in parallel with the old. That, there, is nub of the problem. You can't have parallel cachefiles drivers: There's a single userspace interface (/dev/cachefiles) and only one driver can register it. You would need to decide at compile time whether you want the converted or the unconverted network filesystems to be cached. > You'd then just drop the old infrastructure once all of the fs's are > converted to the new. You could even make them conflict with one another in > Kconfig too, so that only one could be built in during the transition period > if supporting both at runtime is too difficult. > > This approach of disabling everything is much more of an all-or-nothing > affair. It may mean less "churn" overall, but it seems less "nice" > because you have an interval of commits where fscache is non-functional. > > I'm not necessarily opposed to this approach, but I'd like to better > understand why doing it this way was preferred. I'm trying to avoid adding two parallel drivers, but change in place so that I can test parts of it as I go along. David