| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: xfs: untangle the direct I/O and DAX path, fix DAX locking |
| From: | Dan Williams <dan.j.williams@xxxxxxxxx> |
| Date: | Thu, 23 Jun 2016 18:14:47 -0700 |
| Cc: | Christoph Hellwig <hch@xxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, linux-nvdimm <linux-nvdimm@xxxxxxxxxxx>, XFS Developers <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=27uAdUarQkLHWAp5DpGQyGPV4FiRtuJj0kt2eFeL8Pc=; b=GZFnFJ078iYHoZFw77scvTrY3Y6I9p+LKHULs8lZOgfJhMiQf8iPsUmXkcW5YbZ+dG ME7c2ECwv+GaO5x3S70G3eQsEgaEn6TQNvsIlg9ebs+R9nWzB5aaZUJGwm+OJXcS341O fktUbU9wUbv6UwJR8Vcpr5PUaDRDnR14dLfF+Tw8Ti0ghtd7+mjuQnoQYR9+G+cybLU1 lAoQ/odM0rif+v14V+05qFUwFtOb0WXZhjaaTDTLrREi+bHgWBcmGWMvyZ89d7Cr6Fv6 OytyVB/Y9+shgaU0sZ+c2hQdEjcG2kMoSeFCa0rut1e1id97bZgzhFTXiZhKuyduwz95 hWLw== |
| In-reply-to: | <20160623232446.GA12670@dastard> |
| References: | <1466609236-23801-1-git-send-email-hch@xxxxxx> <20160623232446.GA12670@dastard> |
On Thu, Jun 23, 2016 at 4:24 PM, Dave Chinner <david@xxxxxxxxxxxxx> wrote: > On Wed, Jun 22, 2016 at 05:27:08PM +0200, Christoph Hellwig wrote: >> The last patch is what started the series: XFS currently uses the >> direct I/O locking strategy for DAX because DAX was overloaded onto >> the direct I/O path. For XFS this means that we only take a shared >> inode lock instead of the normal exclusive one for writes IFF they >> are properly aligned. While this is fine for O_DIRECT which requires >> explicit opt-in from the application it's not fine for DAX where we'll >> suddenly lose expected and required synchronization of the file system >> happens to use DAX undeneath. > > Except we did that *intentionally* - by definition there is no > cache to bypass with DAX and so all IO is "direct". That, combined > with the fact that all Linux filesystems except XFS break the POSIX > exclusive writer rule you are quoting to begin with, it seemed > pointless to enforce it for DAX.... If we're going to be strict about POSIX fsync() semantics we should be strict about this exclusive write semantic. In other words why is it ok to loosen one and not the other, if application compatibility is the concern? > > So, before taking any patches to change that behaviour in XFS, a > wider discussion about the policy needs to be had. I don't think > we should care about POSIX here - if you have an application that > needs this serialisation, turn off DAX. s/needs this serialisation/needs the kernel to flush cpu cache/ |
| Previous by Date: | Re: [PATCH 008/145] libxfs: add more list operations, Darrick J. Wong |
|---|---|
| Next by Date: | Re: [RFC PATCH 0/2] Initial support for badblock checking in xfs, Darrick J. Wong |
| Previous by Thread: | Re: xfs: untangle the direct I/O and DAX path, fix DAX locking, Dave Chinner |
| Next by Thread: | Re: xfs: untangle the direct I/O and DAX path, fix DAX locking, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |