* [PATCH] null_blk: Print correct max open zones limit in null_init_zoned_dev()
@ 2024-05-28 6:28 Damien Le Moal
2024-05-28 6:54 ` Niklas Cassel
2024-05-28 12:57 ` Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Damien Le Moal @ 2024-05-28 6:28 UTC (permalink / raw)
To: Jens Axboe, linux-block; +Cc: Niklas Cassel
When changing the maximum number of open zones, print that number
instead of the total number of zones.
Fixes: dc4d137ee3b7 ("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>
---
drivers/block/null_blk/zoned.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/null_blk/zoned.c b/drivers/block/null_blk/zoned.c
index 5b5a63adacc1..79c8e5e99f7f 100644
--- a/drivers/block/null_blk/zoned.c
+++ b/drivers/block/null_blk/zoned.c
@@ -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");
--
2.45.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] null_blk: Print correct max open zones limit in null_init_zoned_dev()
2024-05-28 6:28 [PATCH] null_blk: Print correct max open zones limit in null_init_zoned_dev() Damien Le Moal
@ 2024-05-28 6:54 ` Niklas Cassel
2024-05-28 12:57 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2024-05-28 6:54 UTC (permalink / raw)
To: Damien Le Moal; +Cc: Jens Axboe, linux-block
On Tue, May 28, 2024 at 03:28:52PM +0900, Damien Le Moal wrote:
> When changing the maximum number of open zones, print that number
> instead of the total number of zones.
>
> Fixes: dc4d137ee3b7 ("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>
> ---
> drivers/block/null_blk/zoned.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/block/null_blk/zoned.c b/drivers/block/null_blk/zoned.c
> index 5b5a63adacc1..79c8e5e99f7f 100644
> --- a/drivers/block/null_blk/zoned.c
> +++ b/drivers/block/null_blk/zoned.c
> @@ -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");
> --
> 2.45.1
>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] null_blk: Print correct max open zones limit in null_init_zoned_dev()
2024-05-28 6:28 [PATCH] null_blk: Print correct max open zones limit in null_init_zoned_dev() Damien Le Moal
2024-05-28 6:54 ` Niklas Cassel
@ 2024-05-28 12:57 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2024-05-28 12:57 UTC (permalink / raw)
To: linux-block, Damien Le Moal; +Cc: Niklas Cassel
On Tue, 28 May 2024 15:28:52 +0900, Damien Le Moal wrote:
> When changing the maximum number of open zones, print that number
> instead of the total number of zones.
>
>
Applied, thanks!
[1/1] null_blk: Print correct max open zones limit in null_init_zoned_dev()
commit: 233e27b4d21c3e44eb863f03e566d3a22e81a7ae
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-28 12:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28 6:28 [PATCH] null_blk: Print correct max open zones limit in null_init_zoned_dev() Damien Le Moal
2024-05-28 6:54 ` Niklas Cassel
2024-05-28 12:57 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox