Re: [dm-devel] [PATCH 4/9] block: Remove partition support for zoned block devices

2019-11-07 Thread Damien Le Moal
On 2019/11/08 16:17, Hannes Reinecke wrote: > On 11/8/19 2:56 AM, Damien Le Moal wrote: >> No known partitioning tool supports zoned block devices, especially the >> host managed flavor with strong sequential write constraints. >> Furthermore, there are also no known user nor use cases for

Re: [dm-devel] [PATCH 9/9] block: rework zone reporting

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:57 AM, Damien Le Moal wrote: > From: Christoph Hellwig > > Avoid the need to allocate a potentially large array of struct blk_zone > in the block layer by switching the ->report_zones method interface to > a callback model. Now the caller simply supplies a callback that is >

Re: [dm-devel] [PATCH 8/9] scsi: sd_zbc: Cleanup sd_zbc_alloc_report_buffer()

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:57 AM, Damien Le Moal wrote: > There is no need to arbitrarily limit the size of a report zone to the > number of zones defined by SD_ZBC_REPORT_MAX_ZONES. Rather, simply > calculate the report buffer size needed for the requested number of > zones without exceeding the device total

Re: [dm-devel] [PATCH 6/9] null_blk: clean up report zones

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:56 AM, Damien Le Moal wrote: > From: Christoph Hellwig > > Make the instance name match the method name and define the name to NULL > instead of providing an inline stub, which is rather pointless for a > method call. > > Signed-off-by: Christoph Hellwig > Signed-off-by: Damien Le

Re: [dm-devel] [PATCH 7/9] null_blk: Add zone_nr_conv to features

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:57 AM, Damien Le Moal wrote: > For a null_blk device with zoned mode enabled, the number of > conventional zones can be configured through configfs with the > zone_nr_conv parameter. Add this missing parameter in the features > string. > > Signed-off-by: Damien Le Moal > --- >

Re: [dm-devel] [PATCH 5/9] null_blk: clean up the block device operations

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:56 AM, Damien Le Moal wrote: > From: Christoph Hellwig > > Remove the pointless stub open and release methods, give the operations > vector a slightly less confusing name, and use normal alignment for the > assignment operators. > > Signed-off-by: Christoph Hellwig >

Re: [dm-devel] [PATCH 4/9] block: Remove partition support for zoned block devices

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:56 AM, Damien Le Moal wrote: > No known partitioning tool supports zoned block devices, especially the > host managed flavor with strong sequential write constraints. > Furthermore, there are also no known user nor use cases for partitioned > zoned block devices. > > This patch

Re: [dm-devel] [PATCH 3/9] block: Simplify report zones execution

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:56 AM, Damien Le Moal wrote: > All kernel users of blkdev_report_zones() as well as applications use > through ioctl(BLKZONEREPORT) expect to potentially get less zone > descriptors than requested. As such, the use of the internal report > zones command execution loop implemented by

Re: [dm-devel] [PATCH 2/9] block: cleanup the !zoned case in blk_revalidate_disk_zones

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:56 AM, Damien Le Moal wrote: > From: Christoph Hellwig > > blk_revalidate_disk_zones is never called for non-zoned devices. Just > return early and warn instead of trying to handle this case. > > Signed-off-by: Christoph Hellwig > Signed-off-by: Damien Le Moal > --- >

Re: [dm-devel] [PATCH 1/9] block: Enhance blk_revalidate_disk_zones()

2019-11-07 Thread Hannes Reinecke
On 11/8/19 2:56 AM, Damien Le Moal wrote: > For ZBC and ZAC zoned devices, the scsi driver revalidation processing > implemented by sd_revalidate_disk() includes a call to > sd_zbc_read_zones() which executes a full disk zone report used to > check that all zones of the disk are the same size.

Re: [dm-devel] [PATCH] dm-zoned: reduce overhead of backing device checks

2019-11-07 Thread Damien Le Moal
On 2019/11/07 9:19, Dmitry Fomichev wrote: > Commit 75d66ffb48efb3 added backing device health checks and as a part > of these checks, check_events() block ops template call is invoked > in dm-zoned mapping path as well as in reclaim and flush path. Calling > check_events() with ATA or SCSI

Re: [dm-devel] [PATCH 8/9] scsi: sd_zbc: Cleanup sd_zbc_alloc_report_buffer()

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/9] block: Enhance blk_revalidate_disk_zones()

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 4/9] block: Remove partition support for zoned block devices

2019-11-07 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig Note that this has a conflict with my series that cleans up the area around rescan_partitions, but that series will only get simpler after this patch is merged. -- dm-devel mailing list dm-devel@redhat.com

[dm-devel] [PATCH 6/9] null_blk: clean up report zones

2019-11-07 Thread Damien Le Moal
From: Christoph Hellwig Make the instance name match the method name and define the name to NULL instead of providing an inline stub, which is rather pointless for a method call. Signed-off-by: Christoph Hellwig Signed-off-by: Damien Le Moal --- drivers/block/null_blk.h | 11

[dm-devel] [PATCH 2/9] block: cleanup the !zoned case in blk_revalidate_disk_zones

2019-11-07 Thread Damien Le Moal
From: Christoph Hellwig blk_revalidate_disk_zones is never called for non-zoned devices. Just return early and warn instead of trying to handle this case. Signed-off-by: Christoph Hellwig Signed-off-by: Damien Le Moal --- block/blk-zoned.c | 7 --- 1 file changed, 4 insertions(+), 3

[dm-devel] [PATCH 4/9] block: Remove partition support for zoned block devices

2019-11-07 Thread Damien Le Moal
No known partitioning tool supports zoned block devices, especially the host managed flavor with strong sequential write constraints. Furthermore, there are also no known user nor use cases for partitioned zoned block devices. This patch removes partition device creation for zoned block devices,

[dm-devel] [PATCH 7/9] null_blk: Add zone_nr_conv to features

2019-11-07 Thread Damien Le Moal
For a null_blk device with zoned mode enabled, the number of conventional zones can be configured through configfs with the zone_nr_conv parameter. Add this missing parameter in the features string. Signed-off-by: Damien Le Moal --- drivers/block/null_blk_main.c | 2 +- 1 file changed, 1

[dm-devel] [PATCH 9/9] block: rework zone reporting

2019-11-07 Thread Damien Le Moal
From: Christoph Hellwig Avoid the need to allocate a potentially large array of struct blk_zone in the block layer by switching the ->report_zones method interface to a callback model. Now the caller simply supplies a callback that is executed on each reported zone, and private data for it.

[dm-devel] [PATCH 1/9] block: Enhance blk_revalidate_disk_zones()

2019-11-07 Thread Damien Le Moal
For ZBC and ZAC zoned devices, the scsi driver revalidation processing implemented by sd_revalidate_disk() includes a call to sd_zbc_read_zones() which executes a full disk zone report used to check that all zones of the disk are the same size. This processing is followed by a call to

[dm-devel] [PATCH 8/9] scsi: sd_zbc: Cleanup sd_zbc_alloc_report_buffer()

2019-11-07 Thread Damien Le Moal
There is no need to arbitrarily limit the size of a report zone to the number of zones defined by SD_ZBC_REPORT_MAX_ZONES. Rather, simply calculate the report buffer size needed for the requested number of zones without exceeding the device total number of zones. This buffer size limitation to the

[dm-devel] [PATCH 5/9] null_blk: clean up the block device operations

2019-11-07 Thread Damien Le Moal
From: Christoph Hellwig Remove the pointless stub open and release methods, give the operations vector a slightly less confusing name, and use normal alignment for the assignment operators. Signed-off-by: Christoph Hellwig Signed-off-by: Damien Le Moal --- drivers/block/null_blk_main.c | 19

[dm-devel] [PATCH 0/9] Zoned block device enhancements and zone report rework

2019-11-07 Thread Damien Le Moal
This series of patches introduces changes to zoned block device handling code with the intent to simplify the code while optimizing run-time operation, particularly in the area of zone reporting. The first patch lifts the device zone check code out of the sd driver and reimplements these zone

[dm-devel] [PATCH 3/9] block: Simplify report zones execution

2019-11-07 Thread Damien Le Moal
All kernel users of blkdev_report_zones() as well as applications use through ioctl(BLKZONEREPORT) expect to potentially get less zone descriptors than requested. As such, the use of the internal report zones command execution loop implemented by blk_report_zones() is not necessary and can even be

Re: [dm-devel] dm-writecache: change config parameters using messages

2019-11-07 Thread Zdenek Kabelac
Dne 07. 11. 19 v 20:50 Mikulas Patocka napsal(a): On Thu, 7 Nov 2019, Maged Mokhtar wrote: On 07/11/2019 21:09, Mike Snitzer wrote: On Thu, Nov 07 2019 at 1:55pm -0500, Maged Mokhtar wrote: On 06/11/2019 17:08, Mike Snitzer wrote: On Tue, Nov 05 2019 at 4:19pm -0500, Maged Mokhtar

Re: [dm-devel] dm-writecache: change config parameters using messages

2019-11-07 Thread Mike Snitzer
On Thu, Nov 07 2019 at 2:29pm -0500, Maged Mokhtar wrote: > > > On 07/11/2019 21:09, Mike Snitzer wrote: > >On Thu, Nov 07 2019 at 1:55pm -0500, > >Maged Mokhtar wrote: > > > >> > >> > >>On 06/11/2019 17:08, Mike Snitzer wrote: > >>>On Tue, Nov 05 2019 at 4:19pm -0500, > >>>Maged Mokhtar

Re: [dm-devel] dm-writecache: change config parameters using messages

2019-11-07 Thread Mike Snitzer
On Thu, Nov 07 2019 at 1:55pm -0500, Maged Mokhtar wrote: > > > On 06/11/2019 17:08, Mike Snitzer wrote: > >On Tue, Nov 05 2019 at 4:19pm -0500, > >Maged Mokhtar wrote: > > > >>Gentle ping please. > >> > >>It could add flexibility in changing cache parameters after device creation. > > >

Re: [dm-devel] [PATCH 0/8] Zone management commands support

2019-11-07 Thread Jens Axboe
On 10/27/19 8:05 AM, Damien Le Moal wrote: > This series implements a few improvements and cleanups to zone block > device zone reset operations with the first three patches. > > The remaining of the series patches introduce zone open, close and > finish support, allowing users of zoned block

Re: [dm-devel] [PATCH 8/8] null_blk: add zone open, close, and finish support

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 7/8] dm: add zone open, close and finish support

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 6/8] scsi: sd_zbc: add zone open, close, and finish support

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 5/8] block: add zone open, close and finish ioctl support

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 4/8] block: add zone open, close and finish operations

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 2/8] block: Simplify REQ_OP_ZONE_RESET_ALL handling

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/8] block: Remove REQ_OP_ZONE_RESET plugging

2019-11-07 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [PATCH v3 00/72] multipath-tools: cleanup and warning enablement

2019-11-07 Thread Martin Wilck
From: Martin Wilck Hi Christophe, hi Ben, hi Bart, (I found a glitch in the v2 submission of this series. Details below). here is a series with cleanup patches and minor fixes for multipath-tools. Sorry about the number of patches, I hope this way the series will be easier to review. There are

[dm-devel] [PATCH v3 45/72] libmultipath: fix -Wsign-compare warnings with snprintf()

2019-11-07 Thread Martin Wilck
From: Martin Wilck snprintf() returns int, but the size argument "n" is size_t. Use safe_snprintf() to avoid -Wsign-compare warnings. At the same time, improve these macros to check for errors in snprintf(), too. Note: there are more uses of snprintf() in our code that may need review, too. For