Commit 8a322821 authored by shechenglong's avatar shechenglong Committed by Jens Axboe
Browse files

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: 12a1c935 ("block: fix op_is_zone_mgmt() to handle REQ_OP_ZONE_RESET_ALL")
Signed-off-by: default avatarshechenglong <shechenglong@xfusion.com>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 552c1149
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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)
{