Skip to content

Commit 233e27b

Browse files
damien-lemoalaxboe
authored andcommitted
null_blk: Print correct max open zones limit in null_init_zoned_dev()
When changing the maximum number of open zones, print that number instead of the total number of zones. Fixes: dc4d137 ("null_blk: add support for max open/active zone limit for zoned devices") Cc: stable@vger.kernel.org Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Niklas Cassel <cassel@kernel.org> Link: https://lore.kernel.org/r/20240528062852.437599-1-dlemoal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 30a0e31 commit 233e27b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/null_blk/zoned.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int null_init_zoned_dev(struct nullb_device *dev,
108108
if (dev->zone_max_active && dev->zone_max_open > dev->zone_max_active) {
109109
dev->zone_max_open = dev->zone_max_active;
110110
pr_info("changed the maximum number of open zones to %u\n",
111-
dev->nr_zones);
111+
dev->zone_max_open);
112112
} else if (dev->zone_max_open >= dev->nr_zones - dev->zone_nr_conv) {
113113
dev->zone_max_open = 0;
114114
pr_info("zone_max_open limit disabled, limit >= zone count\n");

0 commit comments

Comments
 (0)