[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <38368.1615978421@warthog.procyon.org.uk>
Date: Wed, 17 Mar 2021 10:53:41 +0000
From: David Howells <dhowells@...hat.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: dhowells@...hat.com, Josef Bacik <josef@...icpanda.com>,
Matthew Wilcox <willy@...radead.org>, Chris Mason <clm@...com>,
David Sterba <dsterba@...e.com>,
Trond Myklebust <trondmy@...merspace.com>,
Anna Schumaker <anna.schumaker@...app.com>,
Steve French <sfrench@...ba.org>,
Dominique Martinet <asmadeus@...ewreck.org>,
Christoph Hellwig <hch@....de>,
Alexander Viro <viro@...iv.linux.org.uk>,
Linux-MM <linux-mm@...ck.org>, linux-cachefs@...hat.com,
linux-afs@...ts.infradead.org,
"open list:NFS, SUNRPC, AND..." <linux-nfs@...r.kernel.org>,
CIFS <linux-cifs@...r.kernel.org>, ceph-devel@...r.kernel.org,
v9fs-developer@...ts.sourceforge.net,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Jeff Layton <jlayton@...hat.com>,
David Wysochanski <dwysocha@...hat.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 02/28] mm: Add an unlock function for PG_private_2/PG_fscache
David Howells <dhowells@...hat.com> wrote:
> (1) For the old fscache code that I'm trying to phase out, it does not take a
> ref when PG_fscache is taken (probably incorrectly), relying instead on
> releasepage, etc. getting called to strip the PG_fscache bit. PG_fscache
> is held for the lifetime of the page, indicating that fscache knows about
> it and might access it at any time (to write to the cache in the
> background for example or to move pages around in the cache).
>
> Here PG_fscache should not prevent page eviction or migration and it's
> analogous to PG_private.
>
> That said, the old fscache code keeps its own radix trees of pages that
> are undergoing write to the cache, so to allow a page to be evicted,
> releasepage and co. have to consult those
> (__fscache_maybe_release_page()).
Note that, ideally, we'll be able to remove the old fscache I/O code in the
next merge window or the one after.
David
Powered by blists - more mailing lists