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
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