[PATCH 00/14] Improve handling of offline and read-only zones

Damien Le Moal <[email protected]> Wed, 5 Aug 2026 11:27:05 +0900
Newsgroups org.kernel.vger.linux-block
Message-ID <[email protected]>
Jens,

This patch series refactor some zone related code and improves the
caching iof zone information and the management of zone write plugs in
preparation for fully supporting storage element depopulation.
Most of the functional changes here are around the management of zone
write plugs to better handle read-only and offline zones as these
conditions can become more common with storage element being depopulated.

Damien Le Moal (14):
  block: remove disk_free_zone_resources()
  block: refactor disk_revalidate_zone_resources()
  block: refactor disk_update_zone_resources()
  block: remember a zone type regardless of its condition
  block: refactor bdev_zone_is_seq()
  block: introduce disk_for_all_zone_wplugs()
  block: drop all zone write plugs on capacity changes
  block: propagate readonly and offline conditions to zone write plugs
  block: always treat offline and read-only zones as dead
  block: fail zone management operations to read-only and offline zones
  block: allow read-only and offline conventional zones
  block: simplify disk_zone_set_cond()
  block: flag zoned disks with GENHD_FL_NO_PART
  block: fail reads to offline zones early

 block/blk-core.c       |  12 +-
 block/blk-zoned.c      | 795 +++++++++++++++++++++++++----------------
 block/blk.h            |  12 +
 block/genhd.c          |   7 +
 include/linux/blkdev.h |   2 +-
 5 files changed, 514 insertions(+), 314 deletions(-)

-- 
2.55.0