linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* v6.17-rc3: zbd/009 hangs
@ 2025-08-25 16:10 Bart Van Assche
  2025-08-26  0:11 ` Shinichiro Kawasaki
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Van Assche @ 2025-08-25 16:10 UTC (permalink / raw)
  To: David Sterba, Josef Bacik
  Cc: Shin'ichiro Kawasaki, linux-btrfs,
	linux-block@vger.kernel.org

Hi,

If I run blktests test zbd/009 on top of Jens' for-next branch
(commit 6763582c1263 ("Merge branch 'block-6.17' into for-next")) then
the test triggers a hang in btrfs_writepages(). The same test zbd/009
passes with older kernel versions (v6.16 and before). Other ZBD tests
pass with the same kernel. Could this indicate a BTRFS regression?

Thanks,

Bart.

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

* Re: v6.17-rc3: zbd/009 hangs
  2025-08-25 16:10 v6.17-rc3: zbd/009 hangs Bart Van Assche
@ 2025-08-26  0:11 ` Shinichiro Kawasaki
  2025-08-26  5:46   ` Naohiro Aota
  0 siblings, 1 reply; 3+ messages in thread
From: Shinichiro Kawasaki @ 2025-08-26  0:11 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: David Sterba, Josef Bacik, linux-btrfs@vger.kernel.org,
	linux-block@vger.kernel.org, Naohiro Aota

On Aug 25, 2025 / 09:10, Bart Van Assche wrote:
> Hi,
> 
> If I run blktests test zbd/009 on top of Jens' for-next branch
> (commit 6763582c1263 ("Merge branch 'block-6.17' into for-next")) then
> the test triggers a hang in btrfs_writepages(). The same test zbd/009
> passes with older kernel versions (v6.16 and before). Other ZBD tests
> pass with the same kernel. Could this indicate a BTRFS regression?

I hit the hang also, and identified the trigger commit 04147d8394e8 ("btrfs:
zoned: limit active zones to max_open_zones"), which is in the kernel tag
v6.17-rc3. Zoned btrfs requires max active zones limit of zoned block devices
to be at least 11 or greater. The commit applies the same requirement to
max_open_zones also. On the other hand, the default max_open_zones limit of
scsi_debug is 8. Hence the requirement is not met, and resulted in the hang.

On the blktests side, I will post a patch soon to set max_open_zones limit
larger than 11. I expect the limitation of zoned-btrfs to be checked by mkfs or
mount to avoid confusions.

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

* Re: v6.17-rc3: zbd/009 hangs
  2025-08-26  0:11 ` Shinichiro Kawasaki
@ 2025-08-26  5:46   ` Naohiro Aota
  0 siblings, 0 replies; 3+ messages in thread
From: Naohiro Aota @ 2025-08-26  5:46 UTC (permalink / raw)
  To: Shinichiro Kawasaki, Bart Van Assche
  Cc: David Sterba, Josef Bacik, linux-btrfs@vger.kernel.org,
	linux-block@vger.kernel.org

On Tue Aug 26, 2025 at 9:11 AM JST, Shinichiro Kawasaki wrote:
> On Aug 25, 2025 / 09:10, Bart Van Assche wrote:
>> Hi,
>> 
>> If I run blktests test zbd/009 on top of Jens' for-next branch
>> (commit 6763582c1263 ("Merge branch 'block-6.17' into for-next")) then
>> the test triggers a hang in btrfs_writepages(). The same test zbd/009
>> passes with older kernel versions (v6.16 and before). Other ZBD tests
>> pass with the same kernel. Could this indicate a BTRFS regression?
>
> I hit the hang also, and identified the trigger commit 04147d8394e8 ("btrfs:
> zoned: limit active zones to max_open_zones"), which is in the kernel tag
> v6.17-rc3. Zoned btrfs requires max active zones limit of zoned block devices
> to be at least 11 or greater. The commit applies the same requirement to
> max_open_zones also. On the other hand, the default max_open_zones limit of
> scsi_debug is 8. Hence the requirement is not met, and resulted in the hang.
>
> On the blktests side, I will post a patch soon to set max_open_zones limit
> larger than 11. I expect the limitation of zoned-btrfs to be checked by mkfs or
> mount to avoid confusions.

As an additinal information, btrfs checks if the max_active_zones (or,
max_open_zones) is equal to or larger than 8 to proceed the mount
process. That number is correct when the btrfs is created with a single
metadata profile.

However, btrfs default to use DUP profile for metadata, and it consumes
two zones per metadata block group, which requires more active zones.

I'll refine mkfs and mount check to consider the profile information.

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

end of thread, other threads:[~2025-08-26  5:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 16:10 v6.17-rc3: zbd/009 hangs Bart Van Assche
2025-08-26  0:11 ` Shinichiro Kawasaki
2025-08-26  5:46   ` Naohiro Aota

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).