Skip to content

Commit

Permalink
null_blk: Print correct max open zones limit in null_init_zoned_dev()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
damien-lemoal authored and axboe committed May 28, 2024
1 parent 30a0e31 commit 233e27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/null_blk/zoned.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int null_init_zoned_dev(struct nullb_device *dev,
if (dev->zone_max_active && dev->zone_max_open > dev->zone_max_active) {
dev->zone_max_open = dev->zone_max_active;
pr_info("changed the maximum number of open zones to %u\n",
dev->nr_zones);
dev->zone_max_open);
} else if (dev->zone_max_open >= dev->nr_zones - dev->zone_nr_conv) {
dev->zone_max_open = 0;
pr_info("zone_max_open limit disabled, limit >= zone count\n");
Expand Down

0 comments on commit 233e27b

Please sign in to comment.