From: Damien Le Moal <dlemoal@kernel.org>
To: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
linux-scsi@vger.kernel.org,
"Martin K . Petersen" <martin.petersen@oracle.com>
Subject: [PATCH v4 0/9] Add support for storage element depopulation
Date: Fri, 9 Oct 2026 18:09:36 +0900 [thread overview]
Message-ID: <20261009090945.1504194-1-dlemoal@kernel.org> (raw)
Jens,
These patches define a new set of block device operations for generically
using from the block layer the storage element depopulation feature of
zoned block devices. Support for this feature is added to the SCSI disk
driver and an emulation of this feature added to the zloop driver.
The management operations can be accessed using block layer API, which is
intended for file systems (e.g. zonefs and XFS), as well as using ioctls
for users using zoned disks directly from user space.
Changes from v3:
- Reworked patch 1 to only provide the disk_zone_is_offline() helper
function. Failing of read operations to offline zones is handled
directly by the zloop driver and the new patch 7 is added to handle
failing early read operations to offline zones of ZBC SCSI disks.
- Added patch 2
- Addressed further valid comments from Sashiko
(https://sashiko.dev/#/patchset/20261006124510.882017-1-dlemoal%40kernel.org)
The biggest changes are in patch 2 to save the number of storage
elements of a disk in struct gendisk and to serialize the execution of
the storage element management operations using the zone revalidation
mutex.
- Rebased on latest block/for-next
Changes from v2:
- Addressed further valid comments from Sashiko
(https://sashiko.dev/#/patchset/20261006124510.882017-1-dlemoal%40kernel.org)
- Rebased on latest block/for-next
Changes from v1:
- Addressed the many valid comments that Sashiko had
(https://sashiko.dev/#/patchset/20261005094632.580753-1-dlemoal%40kernel.org)
- Rebased on latest block/for-next
Damien Le Moal (9):
block: introduce disk_zone_is_offline()
block: refactor blk_revalidate_disk_zones()
block: introduce storage element management
block: add storage element management ioctls
zloop: add storage element emulation
zloop: add degrade_element control command
scsi: sd: fail read commands to offline zones early
scsi: sd_zbc: always revalidate zones for disks supporting head depopulation
scsi: sd_zbc: define storage element management operations
.../admin-guide/blockdev/zoned_loop.rst | 8 +-
block/blk-zoned.c | 486 +++++++++++-
block/blk.h | 14 +
block/genhd.c | 4 +
block/ioctl.c | 5 +
drivers/block/zloop.c | 708 ++++++++++++++++--
drivers/scsi/sd.c | 11 +-
drivers/scsi/sd.h | 3 +
drivers/scsi/sd_zbc.c | 259 ++++++-
include/linux/blkdev.h | 31 +
include/uapi/linux/blkzoned.h | 82 ++
include/uapi/linux/fs.h | 1 +
12 files changed, 1535 insertions(+), 77 deletions(-)
--
2.55.0
next reply other threads:[~2026-10-09 9:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 9:09 Damien Le Moal [this message]
2026-10-09 9:09 ` [PATCH v4 1/9] block: introduce disk_zone_is_offline() Damien Le Moal
2026-10-12 12:04 ` Christoph Hellwig
2026-10-09 9:09 ` [PATCH v4 2/9] block: refactor blk_revalidate_disk_zones() Damien Le Moal
2026-10-12 12:04 ` Christoph Hellwig
2026-10-09 9:09 ` [PATCH v4 3/9] block: introduce storage element management Damien Le Moal
2026-10-09 9:24 ` sashiko-bot
2026-10-09 9:09 ` [PATCH v4 4/9] block: add storage element management ioctls Damien Le Moal
2026-10-09 9:28 ` sashiko-bot
2026-10-09 9:09 ` [PATCH v4 5/9] zloop: add storage element emulation Damien Le Moal
2026-10-09 9:21 ` sashiko-bot
2026-10-09 9:09 ` [PATCH v4 6/9] zloop: add degrade_element control command Damien Le Moal
2026-10-09 9:09 ` [PATCH v4 7/9] scsi: sd: fail read commands to offline zones early Damien Le Moal
2026-10-09 9:09 ` [PATCH v4 8/9] scsi: sd_zbc: always revalidate zones for disks supporting head depopulation Damien Le Moal
2026-10-09 9:32 ` sashiko-bot
2026-10-09 9:34 ` Damien Le Moal
2026-10-09 9:09 ` [PATCH v4 9/9] scsi: sd_zbc: define storage element management operations Damien Le Moal
2026-10-09 9:28 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261009090945.1504194-1-dlemoal@kernel.org \
--to=dlemoal@kernel.org \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.