Re: [dm-devel] [PATCH v2] memcpy_flushcache: use cache flusing for larger lengths

2020-03-31 Thread Dan Williams
[ add x86 and LKML ] On Tue, Mar 31, 2020 at 5:27 AM Mikulas Patocka wrote: > > > > On Tue, 31 Mar 2020, Elliott, Robert (Servers) wrote: > > > > > > > > -Original Message- > > > From: Mikulas Patocka > > > Sent: Monday, March 30, 2020 6:32 AM > > > To: Dan Williams ; Vishal Verma > > >

Re: [dm-devel] [PATCH v5 4/8] dax, pmem: Add a dax operation zero_page_range

2020-03-31 Thread Dan Williams
On Tue, Feb 18, 2020 at 1:49 PM Vivek Goyal wrote: > > Add a dax operation zero_page_range, to zero a range of memory. This will > also clear any poison in the range being zeroed. > > As of now, zeroing of up to one page is allowed in a single call. There > are no callers which are trying to zero

Re: [dm-devel] [PATCH v6 4/6] dm, dax: Add dax zero_page_range operation

2020-03-31 Thread Dan Williams
[ Add Mike ] On Fri, Feb 28, 2020 at 8:35 AM Vivek Goyal wrote: > > This patch adds support for dax zero_page_range operation to dm targets. Mike, Sorry, I should have pinged you earlier, but could you take a look at this patch and ack it if it looks ok to go through the nvdimm tree with the re

Re: [dm-devel] [RFC Patch 3/3] multipath: add libmpathvalid library

2020-03-31 Thread Benjamin Marzinski
On Tue, Mar 31, 2020 at 03:38:25PM +, Martin Wilck wrote: > On Mon, 2020-03-30 at 21:00 -0500, Benjamin Marzinski wrote: > > This library allows other programs to check if a path should be > > claimed > > by multipath. Currently, it only includes one function, > > mpath_is_path(), which takes

Re: [dm-devel] [RFC Patch 3/3] multipath: add libmpathvalid library

2020-03-31 Thread Martin Wilck
On Mon, 2020-03-30 at 21:00 -0500, Benjamin Marzinski wrote: > This library allows other programs to check if a path should be > claimed > by multipath. Currently, it only includes one function, > mpath_is_path(), which takes a device name, mode to for checking the > path, and an optional info str

Re: [dm-devel] [RFC Patch 1/3] libmultipath: make libmp_dm_init optional

2020-03-31 Thread Martin Wilck
On Mon, 2020-03-30 at 21:00 -0500, Benjamin Marzinski wrote: > Move dm_initialized out of libmp_dm_task_create(), and add > a function skip_libmp_dm_init() so that users of libmultipath can > skip > initializing device-mapper. This is needed for other programs that > use libmultipath (or a library

Re: [dm-devel] [RFC Patch 2/3] libmultipath: make sysfs_is_multipathed able to return wwid

2020-03-31 Thread Benjamin Marzinski
On Tue, Mar 31, 2020 at 01:06:01PM +, Martin Wilck wrote: > On Mon, 2020-03-30 at 21:00 -0500, Benjamin Marzinski wrote: > > @@ -342,9 +342,25 @@ bool sysfs_is_multipathed(const struct path *pp) > > if (nr == sizeof(uuid) && !memcmp(uuid, "mpath-", > > sizeof(uuid))) > >

Re: [dm-devel] dm-zoned: add 'status' and 'message' callbacks

2020-03-31 Thread Mike Snitzer
On Fri, Mar 27 2020 at 3:08am -0400, Hannes Reinecke wrote: > Add callbacks to supply information for 'dmsetup status' > and 'dmsetup info', and implement the message 'reclaim' > to start the reclaim worker. Who/What will use the 'reclaim' message? Shouldn't it be documented? Think the dmz_sta

Re: [dm-devel] [RFC Patch 2/3] libmultipath: make sysfs_is_multipathed able to return wwid

2020-03-31 Thread Martin Wilck
On Mon, 2020-03-30 at 21:00 -0500, Benjamin Marzinski wrote: > sysfs_is_multipathed reads the wwid of the dm device holding a path > to > check if its a multipath device. Add code to optinally set pp->wwid > to > that wwid. This will be used by a future patch. > > Signed-off-by: Benjamin Marzins

Re: [dm-devel] [PATCH v2] memcpy_flushcache: use cache flusing for larger lengths

2020-03-31 Thread Mikulas Patocka
On Tue, 31 Mar 2020, Elliott, Robert (Servers) wrote: > > > > -Original Message- > > From: Mikulas Patocka > > Sent: Monday, March 30, 2020 6:32 AM > > To: Dan Williams ; Vishal Verma > > ; Dave Jiang ; Ira > > Weiny ; Mike Snitzer > > Cc: linux-nvd...@lists.01.org; dm-devel@redhat.

Re: [dm-devel] [PATCH 1/4] dm-zoned: store zone id within the zone structure

2020-03-31 Thread Hannes Reinecke
On 3/31/20 2:57 AM, Damien Le Moal wrote: On 2020/03/27 16:15, Hannes Reinecke wrote: Instead of calculating the zone index by the offset within the zone array store the index within the structure itself. Signed-off-by: Hannes Reinecke --- drivers/md/dm-zoned-metadata.c | 3 ++- drivers/md/

Re: [dm-devel] [PATCH 4/4] dm-zoned: allow for device size smaller than the capacity

2020-03-31 Thread Hannes Reinecke
On 3/31/20 2:49 AM, Damien Le Moal wrote: On 2020/03/27 16:15, Hannes Reinecke wrote: dm-zoned requires several zones for metadata and chunk bitmaps, so it cannot expose the entire capacity as the device size. Originally the code would check for the capacity being equal to the device size, which