[PATCH 2/6] block: allow REQ_NOWAIT zone management commands
Christoph Hellwig <[email protected]> Tue, 4 Aug 2026 05:50:18 -0700
| Newsgroups | org.kernel.vger.linux-block,org.kernel.vger.io-uring |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
---
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