[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161125194133.GF16504@obsidianresearch.com>
Date: Fri, 25 Nov 2016 12:41:33 -0700
From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Logan Gunthorpe <logang@...tatee.com>,
Serguei Sagalovitch <serguei.sagalovitch@....com>,
Dan Williams <dan.j.williams@...el.com>,
"Deucher, Alexander" <Alexander.Deucher@....com>,
"linux-nvdimm@...ts.01.org" <linux-nvdimm@...1.01.org>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"Kuehling, Felix" <Felix.Kuehling@....com>,
"Bridgman, John" <John.Bridgman@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
"Koenig, Christian" <Christian.Koenig@....com>,
"Sander, Ben" <ben.sander@....com>,
"Suthikulpanit, Suravee" <Suravee.Suthikulpanit@....com>,
"Blinzer, Paul" <Paul.Blinzer@....com>,
"Linux-media@...r.kernel.org" <Linux-media@...r.kernel.org>,
Haggai Eran <haggaie@...lanox.com>
Subject: Re: Enabling peer to peer device transactions for PCIe devices
On Thu, Nov 24, 2016 at 11:58:17PM -0800, Christoph Hellwig wrote:
> On Thu, Nov 24, 2016 at 11:11:34AM -0700, Logan Gunthorpe wrote:
> > * Regular DAX in the FS doesn't work at this time because the FS can
> > move the file you think your transfer to out from under you. Though I
> > understand there's been some work with XFS to solve that issue.
>
> The file system will never move anything under locked down pages,
> locking down pages is used exactly to protect against that.
.. And ODP style mmu notifiers work correctly as well, I'd assume.
So this should work with ZONE_DEVICE, if it doesn't it is a filesystem
bug?
> really want a notification to the consumer if the file systems wants
> to remove the mapping. We have implemented that using FL_LAYOUTS locks
> for NFSD, but only XFS supports it so far. Without that a long term
> locked down region of memory (e.g. a kernel MR) would prevent various
> file operations that would simply hang.
So you imagine a signal back to user space asking user space to drop
any RDMA MRS so the FS can relocate things?
Do we need that, or should we encourage people to use either short
lived MRs or ODP MRs when working with scenarios that need FS
relocation?
Jason
Powered by blists - more mailing lists