mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
null_blk: Print correct max open zones limit in null_init_zoned_dev()
commit233e27b4d2
upstream. When changing the maximum number of open zones, print that number instead of the total number of zones. Fixes:dc4d137ee3
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5fc6b708ef
commit
2c581ca0d6
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ int null_init_zoned_dev(struct nullb_device *dev, struct request_queue *q)
|
||||||
if (dev->zone_max_active && dev->zone_max_open > dev->zone_max_active) {
|
if (dev->zone_max_active && dev->zone_max_open > 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",
|
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) {
|
} else if (dev->zone_max_open >= dev->nr_zones - dev->zone_nr_conv) {
|
||||||
dev->zone_max_open = 0;
|
dev->zone_max_open = 0;
|
||||||
pr_info("zone_max_open limit disabled, limit >= zone count\n");
|
pr_info("zone_max_open limit disabled, limit >= zone count\n");
|
||||||
|
|
Loading…
Reference in a new issue