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

2017-12-22 Thread Jan Kara
On Thu 21-12-17 09:31:50, Dan Williams wrote: > On Thu, Dec 21, 2017 at 4:14 AM, Jan Kara wrote: > > On Wed 20-12-17 14:41:14, Dan Williams wrote: > >> On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: > >> > On Tue 19-12-17 17:11:38, Dan Williams wrote: > >> >> On

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

2017-12-22 Thread Jan Kara
On Thu 21-12-17 09:31:50, Dan Williams wrote: > On Thu, Dec 21, 2017 at 4:14 AM, Jan Kara wrote: > > On Wed 20-12-17 14:41:14, Dan Williams wrote: > >> On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: > >> > On Tue 19-12-17 17:11:38, Dan Williams wrote: > >> >> On Fri, Nov 10, 2017 at 1:08 AM,

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

2017-12-21 Thread Dan Williams
On Thu, Dec 21, 2017 at 4:14 AM, Jan Kara wrote: > On Wed 20-12-17 14:41:14, Dan Williams wrote: >> On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: >> > On Tue 19-12-17 17:11:38, Dan Williams wrote: >> >> On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig

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

2017-12-21 Thread Dan Williams
On Thu, Dec 21, 2017 at 4:14 AM, Jan Kara wrote: > On Wed 20-12-17 14:41:14, Dan Williams wrote: >> On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: >> > On Tue 19-12-17 17:11:38, Dan Williams wrote: >> >> On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: >> >> >> + struct {

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

2017-12-21 Thread Jan Kara
On Wed 20-12-17 14:41:14, Dan Williams wrote: > On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: > > On Tue 19-12-17 17:11:38, Dan Williams wrote: > >> On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: > >> >> + struct { > >> >> +

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

2017-12-21 Thread Jan Kara
On Wed 20-12-17 14:41:14, Dan Williams wrote: > On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: > > On Tue 19-12-17 17:11:38, Dan Williams wrote: > >> On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: > >> >> + struct { > >> >> + /* > >> >> +

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

2017-12-20 Thread Dan Williams
On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: > On Tue 19-12-17 17:11:38, Dan Williams wrote: >> On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: >> >> + struct { >> >> + /* >> >> + * ZONE_DEVICE pages

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

2017-12-20 Thread Dan Williams
On Wed, Dec 20, 2017 at 6:38 AM, Jan Kara wrote: > On Tue 19-12-17 17:11:38, Dan Williams wrote: >> On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: >> >> + struct { >> >> + /* >> >> + * ZONE_DEVICE pages are never on an lru or

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

2017-12-20 Thread Dave Chinner
On Tue, Dec 19, 2017 at 05:11:38PM -0800, Dan Williams wrote: > On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: > >> + struct { > >> + /* > >> + * ZONE_DEVICE pages are never on an lru or handled > >> by > >> +

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

2017-12-20 Thread Dave Chinner
On Tue, Dec 19, 2017 at 05:11:38PM -0800, Dan Williams wrote: > On Fri, Nov 10, 2017 at 1:08 AM, Christoph Hellwig wrote: > >> + struct { > >> + /* > >> + * ZONE_DEVICE pages are never on an lru or handled > >> by > >> + *

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

2017-12-20 Thread Jan Kara
On Tue 19-12-17 17:11:38, Dan Williams wrote: > 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

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

2017-12-20 Thread Jan Kara
On Tue 19-12-17 17:11:38, Dan Williams wrote: > 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

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: [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: [PATCH 14/15] dax: associate mappings with inodes, and warn if dma collides with truncate

2017-11-10 Thread Christoph Hellwig
> + struct { > + /* > + * ZONE_DEVICE pages are never on an lru or handled by > + * a slab allocator, this points to the hosting device > + * page map. > + */ > +

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

2017-11-10 Thread Christoph Hellwig
> + struct { > + /* > + * ZONE_DEVICE pages are never on an lru or handled by > + * a slab allocator, this points to the hosting device > + * page map. > + */ > +

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

2017-10-31 Thread Dan Williams
Catch cases where truncate encounters pages that are still under active dma. This warning is a canary for potential data corruption as truncated blocks could be allocated to a new file while the device is still perform i/o. Cc: Jan Kara Cc: Jeff Moyer Cc:

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

2017-10-31 Thread Dan Williams
Catch cases where truncate encounters pages that are still under active dma. This warning is a canary for potential data corruption as truncated blocks could be allocated to a new file while the device is still perform i/o. Cc: Jan Kara Cc: Jeff Moyer Cc: Christoph Hellwig Cc: Matthew Wilcox