Skip to content

Introduce bdev_zone_is_seq()

Damien Le Moal linux-block 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesApplied
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Use rcu_dereference() in disk_zone_is_conv() (patch 1) and rebase patch 2, as suggested by Christoph.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2block: RCU protect disk->conv_zones_bitmapblock/blk-zoned.c include/linux/blkdev.h+32 -131 reply
2/2block: Add a public bdev_zone_is_seq() helperblock/blk-zoned.c include/linux/blkdev.h+29 -151 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph HellwigJohannes Thumshirn
SeriesR-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Introduce bdev_zone_is_seq()

Allow file systems to safely access a block device gendisk bitmap of conventional zones to determine a zone type by:
1) Patch 1 - changing the gendisk conv_zones_bitmap to be RCU protected
2) Patch 2 - Introducing the helper function bdev_zone_is_seq()

This is in preparation for use in btrfs to remove the btrfs-managed bitmap of conventional zones and in zoned support for xfs.

Changes from v1:
- Use rcu_dereference() in disk_zone_is_conv() (patch 1) and rebase patch 2, as suggested by Christoph.

Damien Le Moal (2):
block: RCU protect disk->conv_zones_bitmap
block: Add a public bdev_zone_is_seq() helper

 block/blk-zoned.c      | 42 ++++++++++++++++++++++++------------------
 include/linux/blkdev.h | 29 ++++++++++++++++++++++++++++-
 2 files changed, 52 insertions(+), 19 deletions(-)
Signature · 1 line
2.47.0