Re: [dm-devel] dm table: Fix zoned model check and zone sectors check

2021-03-12 Thread Damien Le Moal
On 2021/03/13 4:09, Mike Snitzer wrote: > On Thu, Mar 11 2021 at 6:30pm -0500, > Damien Le Moal wrote: > >> On 2021/03/12 2:54, Mike Snitzer wrote: >>> On Wed, Mar 10 2021 at 3:25am -0500, >>> Shin'ichiro Kawasaki wrote: >>> Commit 24f6b6036c9e ("dm table: fix zoned iterate_devices based

[dm-devel] [PATCH v7 1/3] block: add blk_mq_is_queue_frozen()

2021-03-12 Thread Sergei Shtepa
blk_mq_is_queue_frozen() allow to assert that the queue is frozen. Signed-off-by: Sergei Shtepa --- block/blk-mq.c | 13 + include/linux/blk-mq.h | 1 + 2 files changed, 14 insertions(+) diff --git a/block/blk-mq.c b/block/blk-mq.c index d4d7c1caa439..2f188a865024 100644 --

[dm-devel] [PATCH v7 3/3] dm: add DM_INTERPOSED_FLAG

2021-03-12 Thread Sergei Shtepa
DM_INTERPOSED_FLAG allow to create DM targets on "the fly". Underlying block device opens without a flag FMODE_EXCL. DM target receives bio from the original device via bdev_interposer. Signed-off-by: Sergei Shtepa --- drivers/md/dm-core.h | 3 ++ drivers/md/dm-ioctl.c | 13 +++

[dm-devel] [PATCH v7 2/3] block: add bdev_interposer

2021-03-12 Thread Sergei Shtepa
bdev_interposer allows to redirect bio requests to another devices. Signed-off-by: Sergei Shtepa --- block/bio.c | 2 ++ block/blk-core.c | 57 +++ block/genhd.c | 54 + include/linux/blk_

[dm-devel] [PATCH v7 0/3] block device interposer

2021-03-12 Thread Sergei Shtepa
Hi all. I'm joyful to suggest the block device interposer (bdev_interposer) v7. bdev_interposer allows to redirect bio requests to other block devices. In this series of patches I suggest a different implementation of the bio interception mechanism. Now the interposer is a different block device.

Re: [dm-devel] [PATCH] kpartx: free loop device after listing partitions

2021-03-12 Thread Martin Wilck
On Wed, 2021-02-24 at 00:05 -0600, Benjamin Marzinski wrote: > If "kpartx -l" is run on a file that doesn't already have a loop > device > associated with it, it will create a loop device to run the command. > Starting with da59d15c6 ("Fix loopback file with kpartx -av"), it > will > not free the l

Re: [dm-devel] dm table: Fix zoned model check and zone sectors check

2021-03-12 Thread Mike Snitzer
On Thu, Mar 11 2021 at 6:30pm -0500, Damien Le Moal wrote: > On 2021/03/12 2:54, Mike Snitzer wrote: > > On Wed, Mar 10 2021 at 3:25am -0500, > > Shin'ichiro Kawasaki wrote: > > > >> Commit 24f6b6036c9e ("dm table: fix zoned iterate_devices based device > >> capability checks") triggered dm t

Re: [dm-devel] [PATCH v7 1/3] block: add blk_mq_is_queue_frozen()

2021-03-12 Thread Mike Snitzer
On Fri, Mar 12 2021 at 10:44am -0500, Sergei Shtepa wrote: > blk_mq_is_queue_frozen() allow to assert that the queue is frozen. > > Signed-off-by: Sergei Shtepa > --- > block/blk-mq.c | 13 + > include/linux/blk-mq.h | 1 + > 2 files changed, 14 insertions(+) > > diff --g

Re: [dm-devel] [PATCH v7 3/3] dm: add DM_INTERPOSED_FLAG

2021-03-12 Thread Mike Snitzer
On Fri, Mar 12 2021 at 10:44am -0500, Sergei Shtepa wrote: > DM_INTERPOSED_FLAG allow to create DM targets on "the fly". > Underlying block device opens without a flag FMODE_EXCL. > DM target receives bio from the original device via > bdev_interposer. > > Signed-off-by: Sergei Shtepa > --- >

[dm-devel] [PATCH v3] dm-ioctl: return UUID in DM_LIST_DEVICES_CMD result

2021-03-12 Thread Mikulas Patocka
On Thu, 11 Mar 2021, Mike Snitzer wrote: > On Thu, Mar 11 2021 at 2:43pm -0500, > Mikulas Patocka wrote: > > > > > > > On Thu, 11 Mar 2021, Mike Snitzer wrote: > > > > > > Index: linux-2.6/include/uapi/linux/dm-ioctl.h > > > > ==

Re: [dm-devel] [PATCH v2 3/3] multipathd: add recheck_wwid option to verify the path wwid

2021-03-12 Thread Martin Wilck
On Thu, 2021-03-11 at 15:33 -0600, Benjamin Marzinski wrote: > On Thu, Mar 11, 2021 at 08:30:51PM +, Martin Wilck wrote: > > On Wed, 2021-02-24 at 00:33 -0600, Benjamin Marzinski wrote: > > > There are cases where the wwid of a path changes due to LUN > > > remapping > > > without triggering ue