[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wg2LQtWC3e4Z4EGQzEmsLjmk6jm67Ga6UMLY1MH6iDcNQ@mail.gmail.com>
Date: Fri, 22 Oct 2021 09:58:12 -1000
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: David Howells <dhowells@...hat.com>
Cc: linux-cachefs@...hat.com, linux-afs@...ts.infradead.org,
Marc Dionne <marc.dionne@...istor.com>,
Eric Van Hensbergen <ericvh@...il.com>,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
Dave Wysochanski <dwysocha@...hat.com>,
CIFS <linux-cifs@...r.kernel.org>,
Dominique Martinet <asmadeus@...ewreck.org>,
Steve French <sfrench@...ba.org>,
Shyam Prasad N <nspmangalore@...il.com>,
Jeff Layton <jlayton@...nel.org>,
Anna Schumaker <anna.schumaker@...app.com>,
"open list:NFS, SUNRPC, AND..." <linux-nfs@...r.kernel.org>,
Latchesar Ionkov <lucho@...kov.net>,
v9fs-developer@...ts.sourceforge.net,
Trond Myklebust <trond.myklebust@...merspace.com>,
Trond Myklebust <trondmy@...merspace.com>,
Jeff Layton <jlayton@...nel.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
Omar Sandoval <osandov@...ndov.com>,
ceph-devel@...r.kernel.org,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 00/53] fscache: Rewrite index API and management system
On Fri, Oct 22, 2021 at 9:40 AM David Howells <dhowells@...hat.com> wrote:
>
> What's the best way to do this? Is it fine to disable caching in all the
> network filesystems and then directly remove the fscache and cachefiles
> drivers and replace them?
So the basic issue with this whole "total rewrite" is that there's no
way to bisect anything.
And there's no way for people to say "I don't trust the rewrite, I
want to keep using the old tested model".
Which makes this all painful and generally the wrong way to do
anything like this, and there's fundamentally no "best way".
The real best way would be if the conversion could be done truly
incrementally. Flag-days simply aren't good for development, because
even if the patch to enable the new code might be some trivial
one-liner, that doesn't _help_ anything. The switch-over switches from
one code-base to another, with no help from "this is where the problem
started".
So in order of preference:
(a) actual incremental changes where the code keeps working all the
time, and no flag days
(b) same interfaces, so at least you can do A/B testing and people
can choose one or the other
(c) total rewrite
and if (c) is the thing that all the network filesystem people want,
then what the heck is the point in keeping dead code around? At that
point, all the rename crap is just extra work, extra noise, and only a
distraction. There's no upside that I can see.
Linus
Powered by blists - more mailing lists