[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170926143743.GB18758@lst.de>
Date: Tue, 26 Sep 2017 16:37:43 +0200
From: Christoph Hellwig <hch@....de>
To: Dave Chinner <david@...morbit.com>
Cc: Jan Kara <jack@...e.cz>,
Ross Zwisler <ross.zwisler@...ux.intel.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
"Darrick J. Wong" <darrick.wong@...cle.com>,
"J. Bruce Fields" <bfields@...ldses.org>,
Christoph Hellwig <hch@....de>,
Dan Williams <dan.j.williams@...el.com>,
Jeff Layton <jlayton@...chiereds.net>,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-nvdimm@...ts.01.org, linux-xfs@...r.kernel.org
Subject: Re: [PATCH 1/7] xfs: always use DAX if mount option is used
On Tue, Sep 26, 2017 at 09:09:57PM +1000, Dave Chinner wrote:
> Well, quite frankly, I never wanted the mount option for XFS. It was
> supposed to be for initial testing only, then we'd /always/ use the
> the inode flags. For a filesystem to default to using DAX, we
> set the DAX flag on the root inode at mkfs time, and then everything
> inode flag based just works.
And I deeply fundamentally disagree. The mount option is a nice
enough big hammer to try a mode without encoding nitty gritty details
into the application ABI.
The per-inode persistent flag is the biggest nightmare ever, as we see
in all these discussions about it.
What does it even mean? Right now it forces direct addressing as long
as the underlying media supports that. But what about media that
you directly access but you really don't want to because it's really slow?
Or media that is so god damn fast that you never want to buffer? Or
media where you want to buffer for writes (or at least some of them)
but not for reads?
It encodes a very specific mechanism for an early direct access
implementation into the ABI. What we really need is for applications
to declare an intent, not specify a particular mechanism.
Powered by blists - more mailing lists