All of lore.kernel.org
 help / color / mirror / Atom feed
* add a ZONE_RESET_ALL uring cmd v2
@ 2026-07-16  9:17 Christoph Hellwig
  2026-07-16  9:17 ` [PATCH 1/6] block: remove a dead return statement in blk_zone_plug_bio Christoph Hellwig
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Christoph Hellwig @ 2026-07-16  9:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Damien Le Moal, linux-block, io-uring

Hi Jens,

this series adds a new ZONE_RESET_ALL uring cmd, and cleans up the
io_uring discard support and the block layer zone management code a
little bit in preparation for that.

This command is useful to speed up workloads that need to initialize a
large number (or even a small > 1 number) of disks.

Diffstat:
 block/blk-core.c            |    6 +++-
 block/blk-zoned.c           |   30 ----------------------
 block/ioctl.c               |   60 ++++++++++++++++++++++++++++++++++----------
 include/uapi/linux/blkdev.h |    1 
 4 files changed, 53 insertions(+), 44 deletions(-)

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

* [PATCH 1/6] block: remove a dead return statement in blk_zone_plug_bio
  2026-07-16  9:17 add a ZONE_RESET_ALL uring cmd v2 Christoph Hellwig
@ 2026-07-16  9:17 ` Christoph Hellwig
  2026-07-16 11:26   ` Damien Le Moal
  2026-07-16  9:17 ` [PATCH 2/6] block: allow REQ_NOWAIT zone management commands Christoph Hellwig
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2026-07-16  9:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Damien Le Moal, linux-block, io-uring

The switch at the end of blk_zone_plug_bio always returns, so remove
the dead extra return statement after it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk-zoned.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index ca30caec838e..034af9dfb5f9 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -1651,8 +1651,6 @@ bool blk_zone_plug_bio(struct bio *bio, unsigned int nr_segs)
 	default:
 		return false;
 	}
-
-	return false;
 }
 EXPORT_SYMBOL_GPL(blk_zone_plug_bio);
 
-- 
2.53.0


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

* [PATCH 2/6] block: allow REQ_NOWAIT zone management commands
  2026-07-16  9:17 add a ZONE_RESET_ALL uring cmd v2 Christoph Hellwig
  2026-07-16  9:17 ` [PATCH 1/6] block: remove a dead return statement in blk_zone_plug_bio Christoph Hellwig
@ 2026-07-16  9:17 ` Christoph Hellwig
  2026-07-16 11:27   ` Damien Le Moal
  2026-07-16  9:17 ` [PATCH 3/6] block: remove blk_zone_wplug_handle_zone_mgmt Christoph Hellwig
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2026-07-16  9:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Damien Le Moal, linux-block, io-uring

Commit efae226c2ef1 ("block: handle zone management operations
completions") moved all block layer tracking of zone management
operations to the I/O completion handler.  With that REQ_NOWAIT zone
management operations are just fine, so allow them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk-zoned.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 034af9dfb5f9..3b7a5f2bdf98 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -1586,15 +1586,6 @@ static bool blk_zone_wplug_handle_zone_mgmt(struct bio *bio)
 		return true;
 	}
 
-	/*
-	 * No-wait zone management BIOs do not make much sense as the callers
-	 * issue these as blocking operations in most cases. To avoid issues
-	 * with the BIO execution potentially failing with BLK_STS_AGAIN, warn
-	 * about REQ_NOWAIT being set and ignore that flag.
-	 */
-	if (WARN_ON_ONCE(bio->bi_opf & REQ_NOWAIT))
-		bio->bi_opf &= ~REQ_NOWAIT;
-
 	return false;
 }
 
-- 
2.53.0


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

* [PATCH 3/6] block: remove blk_zone_wplug_handle_zone_mgmt
  2026-07-16  9:17 add a ZONE_RESET_ALL uring cmd v2 Christoph Hellwig
  2026-07-16  9:17 ` [PATCH 1/6] block: remove a dead return statement in blk_zone_plug_bio Christoph Hellwig
  2026-07-16  9:17 ` [PATCH 2/6] block: allow REQ_NOWAIT zone management commands Christoph Hellwig
@ 2026-07-16  9:17 ` Christoph Hellwig
  2026-07-16 11:28   ` Damien Le Moal
  2026-07-16  9:17 ` [PATCH 4/6] block: also reject zone open / close on conventional zones Christoph Hellwig
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2026-07-16  9:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Damien Le Moal, linux-block, io-uring

blk_zone_wplug_handle_zone_mgmt now only checks that zone reset and
zone finish operations are directed to a sequential write required
zone.  This has nothing to do with zone write plugs and is better
handled with other bio validity checks in submit_bio_noacct.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk-core.c  |  9 ++++++++-
 block/blk-zoned.c | 19 -------------------
 2 files changed, 8 insertions(+), 20 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index 365641266c9e..67cfd7bd8542 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -898,9 +898,16 @@ void submit_bio_noacct(struct bio *bio)
 			goto not_supported;
 		break;
 	case REQ_OP_ZONE_RESET:
+	case REQ_OP_ZONE_FINISH:
+		/*
+		 * Zone reset and zone finish operations do not apply to
+		 * conventional zones.
+		 */
+		if (!bdev_zone_is_seq(bio->bi_bdev, bio->bi_iter.bi_sector))
+			goto end_io;
+		break;
 	case REQ_OP_ZONE_OPEN:
 	case REQ_OP_ZONE_CLOSE:
-	case REQ_OP_ZONE_FINISH:
 	case REQ_OP_ZONE_RESET_ALL:
 		if (!bdev_is_zoned(bio->bi_bdev))
 			goto not_supported;
diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 3b7a5f2bdf98..a5afb842bf35 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -1574,21 +1574,6 @@ static void blk_zone_wplug_handle_native_zone_append(struct bio *bio)
 	disk_put_zone_wplug(zwplug);
 }
 
-static bool blk_zone_wplug_handle_zone_mgmt(struct bio *bio)
-{
-	if (bio_op(bio) != REQ_OP_ZONE_RESET_ALL &&
-	    !bdev_zone_is_seq(bio->bi_bdev, bio->bi_iter.bi_sector)) {
-		/*
-		 * Zone reset and zone finish operations do not apply to
-		 * conventional zones.
-		 */
-		bio_io_error(bio);
-		return true;
-	}
-
-	return false;
-}
-
 /**
  * blk_zone_plug_bio - Handle a zone write BIO with zone write plugging
  * @bio: The BIO being submitted
@@ -1635,10 +1620,6 @@ bool blk_zone_plug_bio(struct bio *bio, unsigned int nr_segs)
 	case REQ_OP_WRITE:
 	case REQ_OP_WRITE_ZEROES:
 		return blk_zone_wplug_handle_write(bio, nr_segs);
-	case REQ_OP_ZONE_RESET:
-	case REQ_OP_ZONE_FINISH:
-	case REQ_OP_ZONE_RESET_ALL:
-		return blk_zone_wplug_handle_zone_mgmt(bio);
 	default:
 		return false;
 	}
-- 
2.53.0


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

* [PATCH 4/6] block: also reject zone open / close on conventional zones
  2026-07-16  9:17 add a ZONE_RESET_ALL uring cmd v2 Christoph Hellwig
                   ` (2 preceding siblings ...)
  2026-07-16  9:17 ` [PATCH 3/6] block: remove blk_zone_wplug_handle_zone_mgmt Christoph Hellwig
@ 2026-07-16  9:17 ` Christoph Hellwig
  2026-07-16 11:29   ` Damien Le Moal
  2026-07-16  9:17 ` [PATCH 5/6] block: remove most blkdev_cmd_discard arguments Christoph Hellwig
  2026-07-16  9:17 ` [PATCH 6/6] block: implement async io_uring zone reset all Christoph Hellwig
  5 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2026-07-16  9:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Damien Le Moal, linux-block, io-uring

Just like zone reset / finish, these only apply to sequential zones.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk-core.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index 67cfd7bd8542..196bccf27f58 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -897,17 +897,14 @@ void submit_bio_noacct(struct bio *bio)
 		if (!q->limits.max_write_zeroes_sectors)
 			goto not_supported;
 		break;
+	case REQ_OP_ZONE_OPEN:
+	case REQ_OP_ZONE_CLOSE:
 	case REQ_OP_ZONE_RESET:
 	case REQ_OP_ZONE_FINISH:
-		/*
-		 * Zone reset and zone finish operations do not apply to
-		 * conventional zones.
-		 */
+		/* Zone management operations require sequential zones. */
 		if (!bdev_zone_is_seq(bio->bi_bdev, bio->bi_iter.bi_sector))
 			goto end_io;
 		break;
-	case REQ_OP_ZONE_OPEN:
-	case REQ_OP_ZONE_CLOSE:
 	case REQ_OP_ZONE_RESET_ALL:
 		if (!bdev_is_zoned(bio->bi_bdev))
 			goto not_supported;
-- 
2.53.0


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

* [PATCH 5/6] block: remove most blkdev_cmd_discard arguments
  2026-07-16  9:17 add a ZONE_RESET_ALL uring cmd v2 Christoph Hellwig
                   ` (3 preceding siblings ...)
  2026-07-16  9:17 ` [PATCH 4/6] block: also reject zone open / close on conventional zones Christoph Hellwig
@ 2026-07-16  9:17 ` Christoph Hellwig
  2026-07-16 11:30   ` Damien Le Moal
  2026-07-16  9:17 ` [PATCH 6/6] block: implement async io_uring zone reset all Christoph Hellwig
  5 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2026-07-16  9:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Damien Le Moal, linux-block, io-uring

All other arguments can be derived from cmd, so do that to simplify the
calling convention.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/ioctl.c | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/block/ioctl.c b/block/ioctl.c
index 3d4ea1537457..af2a897f13f9 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -887,14 +887,13 @@ static void bio_cmd_bio_end_io(struct bio *bio)
 	bio_put(bio);
 }
 
-static int blkdev_cmd_discard(struct io_uring_cmd *cmd,
-			      struct block_device *bdev,
-			      uint64_t start, uint64_t len, bool nowait)
+static int blkdev_cmd_discard(struct io_uring_cmd *cmd)
 {
 	struct blk_iou_cmd *bic = io_uring_cmd_to_pdu(cmd, struct blk_iou_cmd);
-	gfp_t gfp = nowait ? GFP_NOWAIT : GFP_KERNEL;
-	sector_t sector = start >> SECTOR_SHIFT;
-	sector_t nr_sects = len >> SECTOR_SHIFT;
+	struct block_device *bdev = I_BDEV(cmd->file->f_mapping->host);
+	gfp_t gfp = bic->nowait ? GFP_NOWAIT : GFP_KERNEL;
+	sector_t sector = bic->start >> SECTOR_SHIFT;
+	sector_t nr_sects = bic->len >> SECTOR_SHIFT;
 	struct bio *prev = NULL, *bio;
 	int err;
 
@@ -904,12 +903,12 @@ static int blkdev_cmd_discard(struct io_uring_cmd *cmd,
 		return -EBADF;
 	if (bdev_read_only(bdev))
 		return -EPERM;
-	err = blk_validate_byte_range(bdev, start, len);
+	err = blk_validate_byte_range(bdev, bic->start, bic->len);
 	if (err)
 		return err;
 
-	err = filemap_invalidate_pages(bdev->bd_mapping, start,
-					start + len - 1, nowait);
+	err = filemap_invalidate_pages(bdev->bd_mapping, bic->start,
+				       bic->start + bic->len - 1, bic->nowait);
 	if (err)
 		return err;
 
@@ -917,7 +916,7 @@ static int blkdev_cmd_discard(struct io_uring_cmd *cmd,
 		bio = blk_alloc_discard_bio(bdev, &sector, &nr_sects, gfp);
 		if (!bio)
 			break;
-		if (nowait) {
+		if (bic->nowait) {
 			/*
 			 * Don't allow multi-bio non-blocking submissions as
 			 * subsequent bios may fail but we won't get a direct
@@ -946,7 +945,6 @@ static int blkdev_cmd_discard(struct io_uring_cmd *cmd,
 
 int blkdev_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags)
 {
-	struct block_device *bdev = I_BDEV(cmd->file->f_mapping->host);
 	struct blk_iou_cmd *bic = io_uring_cmd_to_pdu(cmd, struct blk_iou_cmd);
 	u32 cmd_op = cmd->cmd_op;
 
@@ -967,8 +965,7 @@ int blkdev_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags)
 
 	switch (cmd_op) {
 	case BLOCK_URING_CMD_DISCARD:
-		return blkdev_cmd_discard(cmd, bdev, bic->start, bic->len,
-					  bic->nowait);
+		return blkdev_cmd_discard(cmd);
 	}
 	return -EINVAL;
 }
-- 
2.53.0


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

* [PATCH 6/6] block: implement async io_uring zone reset all
  2026-07-16  9:17 add a ZONE_RESET_ALL uring cmd v2 Christoph Hellwig
                   ` (4 preceding siblings ...)
  2026-07-16  9:17 ` [PATCH 5/6] block: remove most blkdev_cmd_discard arguments Christoph Hellwig
@ 2026-07-16  9:17 ` Christoph Hellwig
  2026-07-16 11:31   ` Damien Le Moal
  5 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2026-07-16  9:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Damien Le Moal, linux-block, io-uring

Add a new BLOCK_URING_CMD_ZONE_RESET_ALL uring cmd to reset all zones
for a given block device.  This can be used by storage systems or
file system mkfs tools to initialize multiple devices in parallel.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/ioctl.c               | 37 +++++++++++++++++++++++++++++++++++++
 include/uapi/linux/blkdev.h |  1 +
 2 files changed, 38 insertions(+)

diff --git a/block/ioctl.c b/block/ioctl.c
index af2a897f13f9..64b4e6c0f696 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -14,6 +14,7 @@
 #include <linux/pagemap.h>
 #include <linux/io_uring/cmd.h>
 #include <linux/blk-integrity.h>
+#include <trace/events/block.h>
 #include <uapi/linux/blkdev.h>
 #include "blk.h"
 #include "blk-crypto-internal.h"
@@ -943,6 +944,40 @@ static int blkdev_cmd_discard(struct io_uring_cmd *cmd)
 	return -EIOCBQUEUED;
 }
 
+static int blkdev_cmd_zone_reset_all(struct io_uring_cmd *cmd)
+{
+	struct blk_iou_cmd *bic = io_uring_cmd_to_pdu(cmd, struct blk_iou_cmd);
+	struct block_device *bdev = I_BDEV(cmd->file->f_mapping->host);
+	struct bio *bio;
+	int err;
+
+	if (!(file_to_blk_mode(cmd->file) & BLK_OPEN_WRITE))
+		return -EBADF;
+	if (bdev_read_only(bdev))
+		return -EPERM;
+	if (!bdev_is_zoned(bdev))
+		return -EOPNOTSUPP;
+	if (bic->start || bic->len)
+		return -EINVAL;
+
+	err = filemap_invalidate_pages(bdev->bd_mapping, 0,
+				bdev_nr_bytes(bdev) - 1, bic->nowait);
+	if (err)
+		return err;
+
+	bio = bio_alloc(bdev, 0, REQ_OP_ZONE_RESET_ALL,
+			bic->nowait ? GFP_NOWAIT : GFP_KERNEL);
+	if (!bio)
+		return -EAGAIN;
+	if (bic->nowait)
+		bio->bi_opf |= REQ_NOWAIT;
+	trace_blkdev_zone_mgmt(bio, 0);
+	bio->bi_private = cmd;
+	bio->bi_end_io = bio_cmd_bio_end_io;
+	submit_bio(bio);
+	return -EIOCBQUEUED;
+}
+
 int blkdev_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags)
 {
 	struct blk_iou_cmd *bic = io_uring_cmd_to_pdu(cmd, struct blk_iou_cmd);
@@ -966,6 +1001,8 @@ int blkdev_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags)
 	switch (cmd_op) {
 	case BLOCK_URING_CMD_DISCARD:
 		return blkdev_cmd_discard(cmd);
+	case BLOCK_URING_CMD_ZONE_RESET_ALL:
+		return blkdev_cmd_zone_reset_all(cmd);
 	}
 	return -EINVAL;
 }
diff --git a/include/uapi/linux/blkdev.h b/include/uapi/linux/blkdev.h
index 66373cd1a83a..57b0bbd04e2b 100644
--- a/include/uapi/linux/blkdev.h
+++ b/include/uapi/linux/blkdev.h
@@ -10,5 +10,6 @@
  * It's a different number space from ioctl(), reuse the block's code 0x12.
  */
 #define BLOCK_URING_CMD_DISCARD			_IO(0x12, 0)
+#define BLOCK_URING_CMD_ZONE_RESET_ALL		_IO(0x12, 1)
 
 #endif
-- 
2.53.0


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

* Re: [PATCH 1/6] block: remove a dead return statement in blk_zone_plug_bio
  2026-07-16  9:17 ` [PATCH 1/6] block: remove a dead return statement in blk_zone_plug_bio Christoph Hellwig
@ 2026-07-16 11:26   ` Damien Le Moal
  0 siblings, 0 replies; 13+ messages in thread
From: Damien Le Moal @ 2026-07-16 11:26 UTC (permalink / raw)
  To: Christoph Hellwig, Jens Axboe; +Cc: linux-block, io-uring

On 7/16/26 18:17, Christoph Hellwig wrote:
> The switch at the end of blk_zone_plug_bio always returns, so remove
> the dead extra return statement after it.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>


-- 
Damien Le Moal
Western Digital Research

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

* Re: [PATCH 2/6] block: allow REQ_NOWAIT zone management commands
  2026-07-16  9:17 ` [PATCH 2/6] block: allow REQ_NOWAIT zone management commands Christoph Hellwig
@ 2026-07-16 11:27   ` Damien Le Moal
  0 siblings, 0 replies; 13+ messages in thread
From: Damien Le Moal @ 2026-07-16 11:27 UTC (permalink / raw)
  To: Christoph Hellwig, Jens Axboe; +Cc: linux-block, io-uring

On 7/16/26 18:17, Christoph Hellwig wrote:
> Commit efae226c2ef1 ("block: handle zone management operations
> completions") moved all block layer tracking of zone management
> operations to the I/O completion handler.  With that REQ_NOWAIT zone
> management operations are just fine, so allow them.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

-- 
Damien Le Moal
Western Digital Research

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

* Re: [PATCH 3/6] block: remove blk_zone_wplug_handle_zone_mgmt
  2026-07-16  9:17 ` [PATCH 3/6] block: remove blk_zone_wplug_handle_zone_mgmt Christoph Hellwig
@ 2026-07-16 11:28   ` Damien Le Moal
  0 siblings, 0 replies; 13+ messages in thread
From: Damien Le Moal @ 2026-07-16 11:28 UTC (permalink / raw)
  To: Christoph Hellwig, Jens Axboe; +Cc: linux-block, io-uring

On 7/16/26 18:17, Christoph Hellwig wrote:
> blk_zone_wplug_handle_zone_mgmt now only checks that zone reset and
> zone finish operations are directed to a sequential write required
> zone.  This has nothing to do with zone write plugs and is better
> handled with other bio validity checks in submit_bio_noacct.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

-- 
Damien Le Moal
Western Digital Research

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

* Re: [PATCH 4/6] block: also reject zone open / close on conventional zones
  2026-07-16  9:17 ` [PATCH 4/6] block: also reject zone open / close on conventional zones Christoph Hellwig
@ 2026-07-16 11:29   ` Damien Le Moal
  0 siblings, 0 replies; 13+ messages in thread
From: Damien Le Moal @ 2026-07-16 11:29 UTC (permalink / raw)
  To: Christoph Hellwig, Jens Axboe; +Cc: linux-block, io-uring

On 7/16/26 18:17, Christoph Hellwig wrote:
> Just like zone reset / finish, these only apply to sequential zones.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>


-- 
Damien Le Moal
Western Digital Research

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

* Re: [PATCH 5/6] block: remove most blkdev_cmd_discard arguments
  2026-07-16  9:17 ` [PATCH 5/6] block: remove most blkdev_cmd_discard arguments Christoph Hellwig
@ 2026-07-16 11:30   ` Damien Le Moal
  0 siblings, 0 replies; 13+ messages in thread
From: Damien Le Moal @ 2026-07-16 11:30 UTC (permalink / raw)
  To: Christoph Hellwig, Jens Axboe; +Cc: linux-block, io-uring

On 7/16/26 18:17, Christoph Hellwig wrote:
> All other arguments can be derived from cmd, so do that to simplify the
> calling convention.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>


-- 
Damien Le Moal
Western Digital Research

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

* Re: [PATCH 6/6] block: implement async io_uring zone reset all
  2026-07-16  9:17 ` [PATCH 6/6] block: implement async io_uring zone reset all Christoph Hellwig
@ 2026-07-16 11:31   ` Damien Le Moal
  0 siblings, 0 replies; 13+ messages in thread
From: Damien Le Moal @ 2026-07-16 11:31 UTC (permalink / raw)
  To: Christoph Hellwig, Jens Axboe; +Cc: linux-block, io-uring

On 7/16/26 18:17, Christoph Hellwig wrote:
> Add a new BLOCK_URING_CMD_ZONE_RESET_ALL uring cmd to reset all zones
> for a given block device.  This can be used by storage systems or
> file system mkfs tools to initialize multiple devices in parallel.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>


-- 
Damien Le Moal
Western Digital Research

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

end of thread, other threads:[~2026-07-16 11:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16  9:17 add a ZONE_RESET_ALL uring cmd v2 Christoph Hellwig
2026-07-16  9:17 ` [PATCH 1/6] block: remove a dead return statement in blk_zone_plug_bio Christoph Hellwig
2026-07-16 11:26   ` Damien Le Moal
2026-07-16  9:17 ` [PATCH 2/6] block: allow REQ_NOWAIT zone management commands Christoph Hellwig
2026-07-16 11:27   ` Damien Le Moal
2026-07-16  9:17 ` [PATCH 3/6] block: remove blk_zone_wplug_handle_zone_mgmt Christoph Hellwig
2026-07-16 11:28   ` Damien Le Moal
2026-07-16  9:17 ` [PATCH 4/6] block: also reject zone open / close on conventional zones Christoph Hellwig
2026-07-16 11:29   ` Damien Le Moal
2026-07-16  9:17 ` [PATCH 5/6] block: remove most blkdev_cmd_discard arguments Christoph Hellwig
2026-07-16 11:30   ` Damien Le Moal
2026-07-16  9:17 ` [PATCH 6/6] block: implement async io_uring zone reset all Christoph Hellwig
2026-07-16 11:31   ` Damien Le Moal

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.