linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH blktests] zbd/009: increase max open zones limit to 16
@ 2025-08-26  0:27 Shin'ichiro Kawasaki
  2025-08-26  0:43 ` Chaitanya Kulkarni
  2025-08-31 11:11 ` Shinichiro Kawasaki
  0 siblings, 2 replies; 3+ messages in thread
From: Shin'ichiro Kawasaki @ 2025-08-26  0:27 UTC (permalink / raw)
  To: linux-block
  Cc: linux-btrfs, Bart Van Assche, Naohiro Aota,
	Shin'ichiro Kawasaki

The kernel commit 04147d8394e8 ("btrfs: zoned: limit active zones to
max_open_zones") introduced in kernel version v6.17-rc3 caused the
zbd/009 test case to hang during execution. The hang happens because
zoned btrfs requires the maximum active zones limit of zoned block
devices to be at least 11 or greater. The kernel commit applies this
same requirement to the maximum open zones limit also.

However, by default, the maximum open zones limit for zoned scsi_debug
devices is 8. The test case zbd/009 creates a scsi_debug device with
this limit and set up zoned btrfs. Thereby it violates the 11-zones
requirement, which resulted in the hang.

To avoid the hang, increase the max open zones limit of the scsi_debug
device from the default value 8 to 16.

Suggested-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
---
 tests/zbd/009 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/zbd/009 b/tests/zbd/009
index 6226d83..b268483 100755
--- a/tests/zbd/009
+++ b/tests/zbd/009
@@ -50,6 +50,7 @@ test() {
 		zone_cap_mb=3
 		zone_nr_conv=0
 		zone_size_mb=4
+		zone_max_open=16
 	)
 	_init_scsi_debug "${params[@]}" || return 1
 
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH blktests] zbd/009: increase max open zones limit to 16
  2025-08-26  0:27 [PATCH blktests] zbd/009: increase max open zones limit to 16 Shin'ichiro Kawasaki
@ 2025-08-26  0:43 ` Chaitanya Kulkarni
  2025-08-31 11:11 ` Shinichiro Kawasaki
  1 sibling, 0 replies; 3+ messages in thread
From: Chaitanya Kulkarni @ 2025-08-26  0:43 UTC (permalink / raw)
  To: Shin'ichiro Kawasaki, linux-block
  Cc: linux-btrfs, Bart Van Assche, Naohiro Aota

On 8/25/25 17:27, Shin'ichiro Kawasaki wrote:
> The kernel commit 04147d8394e8 ("btrfs: zoned: limit active zones to
> max_open_zones") introduced in kernel version v6.17-rc3 caused the
> zbd/009 test case to hang during execution. The hang happens because
> zoned btrfs requires the maximum active zones limit of zoned block
> devices to be at least 11 or greater. The kernel commit applies this
> same requirement to the maximum open zones limit also.
>
> However, by default, the maximum open zones limit for zoned scsi_debug
> devices is 8. The test case zbd/009 creates a scsi_debug device with
> this limit and set up zoned btrfs. Thereby it violates the 11-zones
> requirement, which resulted in the hang.
>
> To avoid the hang, increase the max open zones limit of the scsi_debug
> device from the default value 8 to 16.
>
> Suggested-by: Naohiro Aota<naohiro.aota@wdc.com>
> Signed-off-by: Shin'ichiro Kawasaki<shinichiro.kawasaki@wdc.com>

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH blktests] zbd/009: increase max open zones limit to 16
  2025-08-26  0:27 [PATCH blktests] zbd/009: increase max open zones limit to 16 Shin'ichiro Kawasaki
  2025-08-26  0:43 ` Chaitanya Kulkarni
@ 2025-08-31 11:11 ` Shinichiro Kawasaki
  1 sibling, 0 replies; 3+ messages in thread
From: Shinichiro Kawasaki @ 2025-08-31 11:11 UTC (permalink / raw)
  To: linux-block@vger.kernel.org
  Cc: linux-btrfs@vger.kernel.org, Bart Van Assche, Naohiro Aota

On Aug 26, 2025 / 09:27, Shin'ichiro Kawasaki wrote:
> The kernel commit 04147d8394e8 ("btrfs: zoned: limit active zones to
> max_open_zones") introduced in kernel version v6.17-rc3 caused the
> zbd/009 test case to hang during execution. The hang happens because
> zoned btrfs requires the maximum active zones limit of zoned block
> devices to be at least 11 or greater. The kernel commit applies this
> same requirement to the maximum open zones limit also.
> 
> However, by default, the maximum open zones limit for zoned scsi_debug
> devices is 8. The test case zbd/009 creates a scsi_debug device with
> this limit and set up zoned btrfs. Thereby it violates the 11-zones
> requirement, which resulted in the hang.
> 
> To avoid the hang, increase the max open zones limit of the scsi_debug
> device from the default value 8 to 16.
> 
> Suggested-by: Naohiro Aota <naohiro.aota@wdc.com>
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>

FYI, I applied this patch.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-31 11:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26  0:27 [PATCH blktests] zbd/009: increase max open zones limit to 16 Shin'ichiro Kawasaki
2025-08-26  0:43 ` Chaitanya Kulkarni
2025-08-31 11:11 ` Shinichiro Kawasaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).