Skip to content

Zone write plugging and DM zone fixes

Damien Le Moal dm-devel linux-block 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 24 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4null_blk: Do not allow runt zone with zone capacity smaller then zone sizedrivers/block/null_blk/zoned.c+11 -04 replies
2/4block: Fix validation of zoned device with a runt zoneblock/blk-zoned.c+11 -54 replies
3/4block: Fix zone write plugging handling of devices with a runt zoneblock/blk-zoned.c include/linux/blkdev.h+28 -86 replies
4/4dm: Improve zone resource limits handlingdrivers/md/dm-zone.c+177 -377 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchNiklas CasselBart Van AsscheChristoph HellwigHannes Reinecke
1/4R-b R-b R-b R-b
2/4R-b R-b R-b R-b
3/4R-b R-b R-b R-b
4/4R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] Zone write plugging and DM zone fixes

The first patch of this series fixes null_blk to avoid weird zone configurations, namely, a zoned device with a last smaller zone with a zone capacity smaller than the zone size. Related to this, the next 2 patches fix the handling by zone write plugging of zoned devices with a last smaller zone. That was completely botched in the initial series.

Finally, the last patch addresses a long standing issue with zoned device-mapper devices: no zone resource limits (max open and max active zones limits) are not exposed to the user. This patch fixes that, allowing for the limits of the underlying target devices to be exposed with a warning for setups that lead to unreliable limits.

This is all based on block/block-6.10 branch and the last patch depends on Christoph's recent DM queue limits fixes. While the last patch is technically not really a fix for a recent bug, it would be nice to get it in this cycle as the change in the max open zone limits introduced with zone write plugging (i.e. expose a imax open zone limit of 128 for devices with no open zones limits) is confusing zonefs tests causing failures.

Damien Le Moal (4):
null_blk: Do not allow runt zone with zone capacity smaller then zone size
block: Fix validation of zoned device with a runt zone
block: Fix zone write plugging handling of devices with a runt zone
dm: Improve zone resource limits handling

 block/blk-zoned.c              |  47 ++++++--
 drivers/block/null_blk/zoned.c |  11 ++
 drivers/md/dm-zone.c           | 214 +++++++++++++++++++++++++++------
 include/linux/blkdev.h         |   1 +
 4 files changed, 225 insertions(+), 48 deletions(-)
Signature · 1 line
2.45.1