Re: [PATCH v2 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-02 Thread Ross Zwisler
On Mon, Jul 02, 2018 at 09:59:48AM +0200, Lukas Czerner wrote: > On Fri, Jun 29, 2018 at 09:13:00AM -0600, Ross Zwisler wrote: > > On Fri, Jun 29, 2018 at 02:02:23PM +0200, Lukas Czerner wrote: > > > On Wed, Jun 27, 2018 at 03:22:52PM -0600, Ross Zwisler wrote: > > > > Follow the lead of

Re: [PATCH v2 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-02 Thread Lukas Czerner
On Fri, Jun 29, 2018 at 09:13:00AM -0600, Ross Zwisler wrote: > On Fri, Jun 29, 2018 at 02:02:23PM +0200, Lukas Czerner wrote: > > On Wed, Jun 27, 2018 at 03:22:52PM -0600, Ross Zwisler wrote: > > > Follow the lead of xfs_break_dax_layouts() and add synchronization between > > > operations in ext4

Re: [PATCH v2 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-02 Thread Jan Kara
On Fri 29-06-18 09:13:00, Ross Zwisler wrote: > On Fri, Jun 29, 2018 at 02:02:23PM +0200, Lukas Czerner wrote: > > On Wed, Jun 27, 2018 at 03:22:52PM -0600, Ross Zwisler wrote: > > > Follow the lead of xfs_break_dax_layouts() and add synchronization between > > > operations in ext4 which remove

Re: [PATCH v2 2/2] ext4: handle layout changes to pinned DAX mappings

2018-06-29 Thread Dave Chinner
On Fri, Jun 29, 2018 at 02:02:23PM +0200, Lukas Czerner wrote: > On Wed, Jun 27, 2018 at 03:22:52PM -0600, Ross Zwisler wrote: > > Follow the lead of xfs_break_dax_layouts() and add synchronization between > > operations in ext4 which remove blocks from an inode (hole punch, truncate > > down,

Re: [PATCH v2 2/2] ext4: handle layout changes to pinned DAX mappings

2018-06-29 Thread Ross Zwisler
On Fri, Jun 29, 2018 at 02:02:23PM +0200, Lukas Czerner wrote: > On Wed, Jun 27, 2018 at 03:22:52PM -0600, Ross Zwisler wrote: > > Follow the lead of xfs_break_dax_layouts() and add synchronization between > > operations in ext4 which remove blocks from an inode (hole punch, truncate > > down,

Re: [PATCH v2 2/2] ext4: handle layout changes to pinned DAX mappings

2018-06-29 Thread Lukas Czerner
On Wed, Jun 27, 2018 at 03:22:52PM -0600, Ross Zwisler wrote: > Follow the lead of xfs_break_dax_layouts() and add synchronization between > operations in ext4 which remove blocks from an inode (hole punch, truncate > down, etc.) and pages which are pinned due to DAX DMA operations. > >

[PATCH v2 2/2] ext4: handle layout changes to pinned DAX mappings

2018-06-27 Thread Ross Zwisler
Follow the lead of xfs_break_dax_layouts() and add synchronization between operations in ext4 which remove blocks from an inode (hole punch, truncate down, etc.) and pages which are pinned due to DAX DMA operations. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/ext4/ext4.h | 1