Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935936AbcJYMiC (ORCPT ); Tue, 25 Oct 2016 08:38:02 -0400 Received: from gateway22.websitewelcome.com ([192.185.47.206]:38189 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755273AbcJYMiA (ORCPT ); Tue, 25 Oct 2016 08:38:00 -0400 X-Greylist: delayed 1500 seconds by postgrey-1.27 at vger.kernel.org; Tue, 25 Oct 2016 08:38:00 EDT Date: Tue, 25 Oct 2016 05:50:43 -0600 From: Stephen Bates To: Dave Chinner Cc: Christoph Hellwig , Dan Williams , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , linux-rdma@vger.kernel.org, linux-block@vger.kernel.org, Linux MM , Ross Zwisler , Matthew Wilcox , jgunthorpe@obsidianresearch.com, haggaie@mellanox.com, Jens Axboe , Jonathan Corbet , jim.macdonald@everspin.com, sbates@raithin.com, Logan Gunthorpe , David Woodhouse , "Raj, Ashok" Subject: Re: [PATCH 0/3] iopmem : A block device for PCIe memory Message-ID: <20161025115043.GA14986@cgy1-donard.priv.deltatee.com> References: <1476826937-20665-1-git-send-email-sbates@raithlin.com> <20161019184814.GC16550@cgy1-donard.priv.deltatee.com> <20161020232239.GQ23194@dastard> <20161021095714.GA12209@infradead.org> <20161021111253.GQ14023@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161021111253.GQ14023@dastard> User-Agent: Mutt/1.5.23 (2014-03-12) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - estate.websitewelcome.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - raithlin.com X-BWhitelist: no X-Source-IP: 207.54.116.65 X-Exim-ID: 1bz0Fi-000LHp-HU X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: lambic.deltatee.com (cgy1-donard.priv.deltatee.com) [207.54.116.65]:55254 X-Source-Auth: raithlin X-Email-Count: 16 X-Source-Cap: cmFpdGhsaW47c2NvdHQ7ZXN0YXRlLndlYnNpdGV3ZWxjb21lLmNvbQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2069 Lines: 53 Hi Dave and Christoph On Fri, Oct 21, 2016 at 10:12:53PM +1100, Dave Chinner wrote: > On Fri, Oct 21, 2016 at 02:57:14AM -0700, Christoph Hellwig wrote: > > On Fri, Oct 21, 2016 at 10:22:39AM +1100, Dave Chinner wrote: > > > You do realise that local filesystems can silently change the > > > location of file data at any point in time, so there is no such > > > thing as a "stable mapping" of file data to block device addresses > > > in userspace? > > > > > > If you want remote access to the blocks owned and controlled by a > > > filesystem, then you need to use a filesystem with a remote locking > > > mechanism to allow co-ordinated, coherent access to the data in > > > those blocks. Anything else is just asking for ongoing, unfixable > > > filesystem corruption or data leakage problems (i.e. security > > > issues). > > Dave are you saying that even for local mappings of files on a DAX capable system it is possible for the mappings to move on you unless the FS supports locking? Does that not mean DAX on such FS is inherently broken? > > And at least for XFS we have such a mechanism :) E.g. I have a > > prototype of a pNFS layout that uses XFS+DAX to allow clients to do > > RDMA directly to XFS files, with the same locking mechanism we use > > for the current block and scsi layout in xfs_pnfs.c. > Thanks for fixing this issue on XFS Christoph! I assume this problem continues to exist on the other DAX capable FS? One more reason to consider a move to /dev/dax I guess ;-)... Stephen > Oh, that's good to know - pNFS over XFS was exactly what I was > thinking of when I wrote my earlier reply. A few months ago someone > else was trying to use file mappings in userspace for direct remote > client access on fabric connected devices. I told them "pNFS on XFS > and write an efficient transport for you hardware".... > > Now that I know we've got RDMA support for pNFS on XFS in the > pipeline, I can just tell them "just write an rdma driver for your > hardware" instead. :P > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com