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: [email protected] Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Niklas Cassel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 30a0e31 commit 233e27b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)