[PATCH 3/8] dm vdo memory-alloc: rename UDS_FREE to uds_free

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo-target.c | 14 - drivers/md/dm-vdo/block-map.c | 22 +++--- drivers/md/dm-vdo/chapter-index.c | 4 +--

[PATCH 4/8] dm vdo memory-alloc: rename UDS_ALLOCATE to uds_allocate

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo-target.c | 10 +- drivers/md/dm-vdo/action-manager.c | 2 +- drivers/md/dm-vdo/block-map.c | 10 +-

[PATCH 5/8] dm vdo memory-alloc: rename UDS_ALLOCATE_EXTENDED to uds_allocate_extended

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo/block-map.c| 8 drivers/md/dm-vdo/data-vio.c | 2 +- drivers/md/dm-vdo/dedupe.c | 2 +- drivers/md/dm-vdo/index-layout.c

[PATCH 6/8] dm vdo memory-alloc: rename uds_free_memory to uds_free

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo/memory-alloc.c | 2 +- drivers/md/dm-vdo/memory-alloc.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH 1/8] dm vdo memory-alloc: remove UDS_ALLOCATE_NOWAIT macro

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Only caller can easily open-code call to uds_allocate_memory_nowait(). Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo/flush.c| 2 +- drivers/md/dm-vdo/memory-alloc.h | 8 +++- 2 files changed,

[PATCH 8/8] dm vdo memory-alloc: mark branch unlikely() in uds_allocate_memory()

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Remove temporary 'duration' variable. And cleanup coding style nit. Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo/memory-alloc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH 7/8] dm vdo memory-alloc: cleanup flow of memory-alloc.h

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo/memory-alloc.h | 51 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/drivers/md/dm-vdo/memory-alloc.h

[PATCH 2/8] dm vdo memory-alloc: rename UDS_FORGET to uds_forget

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Reviewed-by: Susan LeGendre-McGhee Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo-target.c | 12 +++ drivers/md/dm-vdo/admin-state.c | 2 +- drivers/md/dm-vdo/block-map.c| 26 +++

[PATCH 0/8] dm vdo memory-alloc: various fixes

2023-11-10 Thread Matthew Sakai
This patchset includes various fixes to make the interface to the dm-vdo memory allocator cleaner. Mike Snitzer (8): dm vdo memory-alloc: remove UDS_ALLOCATE_NOWAIT macro dm vdo memory-alloc: rename UDS_FORGET to uds_forget dm vdo memory-alloc: rename UDS_FREE to uds_free dm vdo

[PATCH] dm vdo: use BUILD_BUG_ON instead of STATIC_ASSERT

2023-11-10 Thread Matthew Sakai
From: Mike Snitzer Also convert STATIC_ASSERT_SIZEOF callers to using BUILD_BUG_ON. Reviewed-by: Chung Chung Signed-off-by: Mike Snitzer Signed-off-by: Matthew Sakai --- drivers/md/dm-vdo/block-map.c| 10 +- drivers/md/dm-vdo/data-vio.c | 6 +++---

Re: [PATCH v9 0/3] [PATCH v9 0/3] Introduce provisioning primitives

2023-11-10 Thread Dave Chinner
On Thu, Nov 09, 2023 at 05:01:35PM -0800, Sarthak Kukreti wrote: > Hi, > > This patch series is version 9 of the patch series to introduce > block-level provisioning mechanism (original [1]), which is useful for > provisioning space across thinly provisioned storage architectures (loop > devices

[PATCH 0/2] Makefile cleanups.

2023-11-10 Thread Benjamin Marzinski
Two small, and I hope sensible, changes to Makefile.inc Benjamin Marzinski (2): Makefile.inc: always use /usr/share/man for mandir Makefile.inc: always use /usr/include for includedir Makefile.inc | 5 ++--- create-config.mk | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) --

[PATCH 2/2] Makefile.inc: always use /usr/include for includedir

2023-11-10 Thread Benjamin Marzinski
The current build system, with nothing overridden, will install the header files to /include, which AFAIK isn't correct for any distribution. Signed-off-by: Benjamin Marzinski --- Makefile.inc | 3 +-- create-config.mk | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 1/2] Makefile.inc: always use /usr/share/man for mandir

2023-11-10 Thread Benjamin Marzinski
The current build system, with nothing overridden, will install the man pages in /share/man, which AFAIK isn't correct for any distribution. Signed-off-by: Benjamin Marzinski --- Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index

Re: [PATCH v2 6/6] multipathd: Add auto_resize config option

2023-11-10 Thread Martin Wilck
On Thu, 2023-11-09 at 18:46 -0500, Benjamin Marzinski wrote: > This option gives multipathd the ability to automatically resize a > device when it detects that all of the path devices have changed. By > default it is set to never, and multipathd will continue to work like > it > always has, where

Re: [PATCH v2 3/6] multipathd: check and update all paths when in cli_resize

2023-11-10 Thread Martin Wilck
On Thu, 2023-11-09 at 18:46 -0500, Benjamin Marzinski wrote: > When resizing a multipath device, make sure that all the paths have > been updated to the new size first. > > Signed-off-by: Benjamin Marzinski Reviewed-by: Martin Wilck

Re: [PATCH v2 1/6] libmultipath: Add max_retries config option

2023-11-10 Thread Martin Wilck
On Thu, 2023-11-09 at 18:46 -0500, Benjamin Marzinski wrote: > This option lets multipath set a scsi disk's max_retries sysfs value. > Setting this can be helpful for cases where the path checker > succeeds, > but IO commands hang and timeout. By default, the SCSI layer will > retry > IOs 5 times.