]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: fix comment for op_is_zone_mgmt() to include RESET_ALL
authorshechenglong <shechenglong@xfusion.com>
Wed, 3 Dec 2025 15:17:49 +0000 (23:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Dec 2025 22:43:28 +0000 (15:43 -0700)
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: 12a1c9353c47 ("block: fix op_is_zone_mgmt() to handle REQ_OP_ZONE_RESET_ALL")
Signed-off-by: shechenglong <shechenglong@xfusion.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk_types.h

index cbbcb9051ec374f6fde1260f7146fd1f36b9971e..5dc061d318a45dac1c9f7d8bc0c03acd039bc698 100644 (file)
@@ -479,10 +479,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)
 {