Re: [RFC] dax,pmem: Provide a dax operation to zero range of memory

2020-02-04 Thread Darrick J. Wong
On Fri, Jan 31, 2020 at 03:31:58PM -0800, Dan Williams wrote: > On Thu, Jan 23, 2020 at 11:07 AM Darrick J. Wong > wrote: > > > > On Thu, Jan 23, 2020 at 11:52:49AM -0500, Vivek Goyal wrote: > > > Hi, > > > > > > This is an RFC patch to provide a dax operation to zero a range of memory. > > > It

Re: [RFC] dax,pmem: Provide a dax operation to zero range of memory

2020-02-03 Thread Christoph Hellwig
On Fri, Jan 31, 2020 at 03:31:58PM -0800, Dan Williams wrote: > > Should we (XFS) make fallocate(ZERO_RANGE) detect when it's operating on > > a written extent in a DAX file and call this instead of what it does now > > (punch range and reallocate unwritten)? > > If it eliminates more block

Re: [RFC] dax,pmem: Provide a dax operation to zero range of memory

2020-01-31 Thread Dan Williams
On Thu, Jan 23, 2020 at 11:07 AM Darrick J. Wong wrote: > > On Thu, Jan 23, 2020 at 11:52:49AM -0500, Vivek Goyal wrote: > > Hi, > > > > This is an RFC patch to provide a dax operation to zero a range of memory. > > It will also clear poison in the process. This is primarily compile tested > >

Re: [RFC] dax,pmem: Provide a dax operation to zero range of memory

2020-01-30 Thread Christoph Hellwig
On Thu, Jan 23, 2020 at 11:52:49AM -0500, Vivek Goyal wrote: > Hi, > > This is an RFC patch to provide a dax operation to zero a range of memory. > It will also clear poison in the process. This is primarily compile tested > patch. I don't have real hardware to test the poison logic. I am posting

Re: [RFC] dax,pmem: Provide a dax operation to zero range of memory

2020-01-24 Thread Vivek Goyal
On Thu, Jan 23, 2020 at 11:01:03AM -0800, Darrick J. Wong wrote: > On Thu, Jan 23, 2020 at 11:52:49AM -0500, Vivek Goyal wrote: > > Hi, > > > > This is an RFC patch to provide a dax operation to zero a range of memory. > > It will also clear poison in the process. This is primarily compile tested

Re: [RFC] dax,pmem: Provide a dax operation to zero range of memory

2020-01-23 Thread Darrick J. Wong
On Thu, Jan 23, 2020 at 11:52:49AM -0500, Vivek Goyal wrote: > Hi, > > This is an RFC patch to provide a dax operation to zero a range of memory. > It will also clear poison in the process. This is primarily compile tested > patch. I don't have real hardware to test the poison logic. I am posting

[RFC] dax,pmem: Provide a dax operation to zero range of memory

2020-01-23 Thread Vivek Goyal
Hi, This is an RFC patch to provide a dax operation to zero a range of memory. It will also clear poison in the process. This is primarily compile tested patch. I don't have real hardware to test the poison logic. I am posting this to figure out if this is the right direction or not. Motivation