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

Hannes Reinecke hare at suse.de
Fri Nov 8 07:23:21 UTC 2019


On 11/8/19 2:57 AM, Damien Le Moal wrote:
> From: Christoph Hellwig <hch at lst.de>
> 
> 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.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
> Signed-off-by: Damien Le Moal <damien.lemoal at wdc.com>
> ---
>  block/blk-zoned.c              | 253 +++++++++++++--------------------
>  drivers/block/null_blk.h       |   2 +-
>  drivers/block/null_blk_zoned.c |  31 ++--
>  drivers/md/dm-flakey.c         |  18 +--
>  drivers/md/dm-linear.c         |  20 +--
>  drivers/md/dm-zoned-metadata.c | 131 +++++++----------
>  drivers/md/dm.c                | 121 +++++++---------
>  drivers/scsi/sd.h              |   4 +-
>  drivers/scsi/sd_zbc.c          | 106 +++++++-------
>  fs/f2fs/super.c                |  51 +++----
>  include/linux/blkdev.h         |  15 +-
>  include/linux/device-mapper.h  |  24 +++-
>  12 files changed, 329 insertions(+), 447 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      Teamlead Storage & Networking
hare at suse.de			                  +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 247165 (AG München), GF: Felix Imendörffer




More information about the dm-devel mailing list