linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Darrick J. Wong" <djwong@kernel.org>,
	linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org,
	david@fromorbit.com, linux-kernel@vger.kernel.org,
	sandeen@sandeen.net, hch@lst.de,
	linux-ext4 <linux-ext4@vger.kernel.org>,
	Theodore Ts'o <tytso@mit.edu>,
	ira.weiny@intel.com
Subject: [GIT PULL] vfs: improve DAX behavior for 5.8, part 2
Date: Tue, 2 Jun 2020 10:25:50 -0700	[thread overview]
Message-ID: <20200602172550.GF8204@magnolia> (raw)

Hi Linus,

Please pull this second part of the 5.8 DAX changes.  This time around,
we're hoisting the DONTCACHE flag from XFS into the VFS so that we can
make the incore DAX mode changes become effective sooner.

We can't change the file data access mode on a live inode because we
don't have a safe way to change the file ops pointers.  The incore state
change becomes effective at inode loading time, which can happen if the
inode is evicted.  Therefore, we're making it so that filesystems can
ask the VFS to evict the inode as soon as the last holder drops.  The
per-fs changes to make this call this will be in subsequent pull
requests from Ted and myself.

I did a test merge of this branch against upstream this morning and
there weren't any conflicts.  Please let us know if you have any
complaints about pulling this.

--D

The following changes since commit 83d9088659e8f113741bb197324bd9554d159657:

  Documentation/dax: Update Usage section (2020-05-04 08:49:39 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/vfs-5.8-merge-2

for you to fetch changes up to 2c567af418e3f9380c2051aada58b4e5a4b5c2ad:

  fs: Introduce DCACHE_DONTCACHE (2020-05-13 08:44:35 -0700)

----------------------------------------------------------------
(More) new code for 5.8:
- Introduce DONTCACHE flags for dentries and inodes.  This hint will
  cause the VFS to drop the associated objects immediately after the
  last put, so that we can change the file access mode (DAX or page
  cache) on the fly.

----------------------------------------------------------------
Ira Weiny (2):
      fs: Lift XFS_IDONTCACHE to the VFS layer
      fs: Introduce DCACHE_DONTCACHE

 fs/dcache.c            | 19 +++++++++++++++++++
 fs/xfs/xfs_icache.c    |  4 ++--
 fs/xfs/xfs_inode.h     |  3 +--
 fs/xfs/xfs_super.c     |  2 +-
 include/linux/dcache.h |  2 ++
 include/linux/fs.h     |  7 ++++++-
 6 files changed, 31 insertions(+), 6 deletions(-)

             reply	other threads:[~2020-06-02 17:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02 17:25 Darrick J. Wong [this message]
2020-06-03  3:50 ` [GIT PULL] vfs: improve DAX behavior for 5.8, part 2 pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200602172550.GF8204@magnolia \
    --to=djwong@kernel.org \
    --cc=david@fromorbit.com \
    --cc=hch@lst.de \
    --cc=ira.weiny@intel.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=sandeen@sandeen.net \
    --cc=torvalds@linux-foundation.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).