linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Introduce bdev_zone_is_seq()
@ 2024-11-07  6:42 Damien Le Moal
  2024-11-07  6:42 ` [PATCH v2 1/2] block: RCU protect disk->conv_zones_bitmap Damien Le Moal
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Damien Le Moal @ 2024-11-07  6:42 UTC (permalink / raw)
  To: Jens Axboe, linux-block; +Cc: Christoph Hellwig

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(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-07 22:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-07  6:42 [PATCH v2 0/2] Introduce bdev_zone_is_seq() Damien Le Moal
2024-11-07  6:42 ` [PATCH v2 1/2] block: RCU protect disk->conv_zones_bitmap Damien Le Moal
2024-11-07  6:43   ` Christoph Hellwig
2024-11-07  6:43 ` [PATCH v2 2/2] block: Add a public bdev_zone_is_seq() helper Damien Le Moal
2024-11-07  6:43   ` Christoph Hellwig
2024-11-07  8:48 ` [PATCH v2 0/2] Introduce bdev_zone_is_seq() Johannes Thumshirn
2024-11-07 22:36 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).