Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

authored by

shechenglong and committed by
Jens Axboe
8a322821 552c1149

+1 -4
+1 -4
include/linux/blk_types.h
··· 479 479 } 480 480 481 481 /* 482 - * Check if a bio or request operation is a zone management operation, with 483 - * the exception of REQ_OP_ZONE_RESET_ALL which is treated as a special case 484 - * due to its different handling in the block layer and device response in 485 - * case of command failure. 482 + * Check if a bio or request operation is a zone management operation. 486 483 */ 487 484 static inline bool op_is_zone_mgmt(enum req_op op) 488 485 {