Skip to contentSkip to conversation

block: fix comment for op_is_zone_mgmt() to include RESET_ALL

PATCH Applied shechenglong 4 participants 4 messages Dec 3, 2025 – Dec 4, 2025 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: fix comment for op_is_zone_mgmt() to include RESET_ALL

REQ_OP_ZONE_RESET_ALL is a zone management request, and op_is_zone_mgmt() has returned true for it.

Update the comment to remove the misleading exception note so the documentation matches the implementation.

Fixes 12a1c93 ("block: fix op_is_zone_mgmt() to handle REQ_OP_ZONE_RESET_ALL")
---
 include/linux/blk_types.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
include/linux/blk_types.h +1 -4
index 44c30183ecc3..4e2e3aed32f5 100644
@@ -469,10 +469,7 @@ static inline bool op_is_discard(blk_opf_t op)
 }
 
 /*
- * Check if a bio or request operation is a zone management operation, with
- * the exception of REQ_OP_ZONE_RESET_ALL which is treated as a special case
- * due to its different handling in the block layer and device response in
- * case of command failure.
+ * Check if a bio or request operation is a zone management operation.
  */
 static inline bool op_is_zone_mgmt(enum req_op op)
 {
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#2 lore raw
In reply to shechenglong
Quoted 8 lines · shechenglong

REQ_OP_ZONE_RESET_ALL is a zone management request, and op_is_zone_mgmt() has returned true for it.

Update the comment to remove the misleading exception note so the documentation matches the implementation.

Fixes 12a1c93 ("block: fix op_is_zone_mgmt() to handle REQ_OP_ZONE_RESET_ALL")

Looks good.

Signature · 2 lines
Damien Le Moal
Western Digital Research
maintainer Applied
#3 lore raw
In reply to shechenglong
Quoted 8 lines · shechenglong

REQ_OP_ZONE_RESET_ALL is a zone management request, and op_is_zone_mgmt() has returned true for it.

Update the comment to remove the misleading exception note so the documentation matches the implementation.

[...]

Applied, thanks!

[1/1] block: fix comment for op_is_zone_mgmt() to include RESET_ALL

      commit: 4ce1aeacddb06241a1a9c75bf1c1bc3be5a799dd

Best regards,

Signature · 1 line
Jens Axboe