Re: [PATCH 14/15] dax: associate mappings with inodes, and warn if dma collides with truncate

2017-12-19 Thread Dan Williams
On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: >> + struct { >> + /* >> + * ZONE_DEVICE pages are never on an lru or handled by >> + * a slab allocator, this points to the hosting device >> +

Re: revamp vmem_altmap / dev_pagemap handling V2

2017-12-19 Thread Dan Williams
On Fri, Dec 15, 2017 at 6:09 AM, Christoph Hellwig wrote: > > Hi all, > > this series started with two patches from Logan that now are in the > middle of the series to kill the memremap-internal pgmap structure > and to redo the dev_memreamp_pages interface to be better suitable >

Re: [PATCH 0/2] ext4: Fix ENOSPC handling for DAX faults

2017-12-19 Thread Ross Zwisler
On Tue, Dec 19, 2017 at 03:30:51PM +0100, Jan Kara wrote: > On Fri 15-12-17 12:36:25, Ross Zwisler wrote: > > On Wed, Dec 13, 2017 at 10:13:50AM +0100, Jan Kara wrote: > > > Hello, > > > > > > these two patches fix handling of ENOSPC during DAX faults. The problem is > > > that currently running

Re: [PATCH 16/17] memremap: change devm_memremap_pages interface to use struct dev_pagemap

2017-12-19 Thread Christoph Hellwig
On Sun, Dec 17, 2017 at 10:51:56AM -0800, Dan Williams wrote: > On Fri, Dec 15, 2017 at 6:09 AM, Christoph Hellwig wrote: > > From: Logan Gunthorpe > > > > This new interface is similar to how struct device (and many others) > > work. The caller initializes a

Re: [PATCH 14/17] memremap: simplify duplicate region handling in devm_memremap_pages

2017-12-19 Thread Christoph Hellwig
On Sun, Dec 17, 2017 at 09:34:11AM -0800, Dan Williams wrote: > This is not racy, we'll catch the error on insert, and I think the > extra debug information is useful for debugging a broken memory map or > alignment math. We can check for -Š•EXIST and print the warning, but it's a weird pattern

Re: [PATCH 06/17] mm: pass the vmem_altmap to arch_remove_memory and __remove_pages

2017-12-19 Thread Christoph Hellwig
On Fri, Dec 15, 2017 at 06:04:37PM -0800, Dan Williams wrote: > On Fri, Dec 15, 2017 at 6:09 AM, Christoph Hellwig wrote: > > We can just pass this on instead of having to do a radix tree lookup > > without proper locking 2 levels into the callchain. > > > > Signed-off-by: Christoph

Re: [PATCH 0/2] ext4: Fix ENOSPC handling for DAX faults

2017-12-19 Thread Jan Kara
On Fri 15-12-17 12:36:25, Ross Zwisler wrote: > On Wed, Dec 13, 2017 at 10:13:50AM +0100, Jan Kara wrote: > > Hello, > > > > these two patches fix handling of ENOSPC during DAX faults. The problem is > > that currently running transaction may be holding lots of already freed > > blocks which can