From: shechenglong Date: Wed, 3 Dec 2025 15:17:49 +0000 (+0800) Subject: block: fix comment for op_is_zone_mgmt() to include RESET_ALL X-Git-Tag: v5.15.198~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8b52fa40fc8128d0245ea9a2ba8c003506b7777;p=thirdparty%2Fkernel%2Fstable.git block: fix comment for op_is_zone_mgmt() to include RESET_ALL [ Upstream commit 8a32282175c964eb15638e8dfe199fc13c060f67 ] 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 Reviewed-by: Damien Le Moal Reviewed-by: Johannes Thumshirn Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 2d21af10a9df9..a9e554ef3c4a8 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -472,10 +472,7 @@ static inline bool op_is_discard(unsigned int 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_opf op) {