From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Tao Cui <cui.tao@linux.dev>
Cc: linux-next@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
Damien Le Moal <dlemoal@kernel.org>,
linux-block@vger.kernel.org, cuitao@kylinos.cn,
Mark Brown <broonie@kernel.org>
Subject: Re: next-20260917 and next-20260918: merge of the block tree breaks all zoned devices
Date: Sun, 20 Sep 2026 23:12:26 +1000 [thread overview]
Message-ID: <20260920231226.771a0e21@canb.auug.org.au> (raw)
In-Reply-To: <20260920125846.1806521-1-cui.tao@linux.dev>
[-- Attachment #1: Type: text/plain, Size: 2188 bytes --]
Hi Tao,
On Sun, 20 Sep 2026 20:58:34 +0800 Tao Cui <cui.tao@linux.dev> wrote:
>
> Hi Stephen,
I no longer run linux-next, please email Mark Brown (cc'd).
[The rest kept for Mark's benefit]
> I ran into this while testing a blk-iocost series of mine (charging
> zone appends as writes) against a zoned null_blk: the device simply
> does not show up, whether configured through module parameters or
> configfs. null_blk prints "using native zone append" and then
> add_disk() fails silently with -ENODEV.
>
> My series only touches blk-iocost.c, and the failure reproduces on
> plain linux-next, so it is not mine. Bisecting over the tags (qemu,
> "null_blk.zoned=1 null_blk.gb=1 null_blk.zone_size=64" on the command
> line) narrows it down to one day:
>
> next-20260916: nullb0 created, /sys/block/nullb0/queue/zoned = host-managed
> next-20260917: no device, add_disk() fails
> next-20260918: same failure
>
> The only blk-zoned.c changes between next-20260916 and next-20260917
> come in through the merge of the block tree, and next-20260918 repeats
> the same resolution in the same place:
>
> 66c8b6b56c09 ("Merge branch 'for-next' of .../axboe/linux.git", 2026-09-17)
> a9ce2250a714 ("Merge branch 'for-next' of .../axboe/linux.git", 2026-09-18)
>
> As far as I can tell the resolved disk_revalidate_capacity() matches
> neither parent: it gains a
>
> if (args->capacity >= args->nr_zones)
>
> check that compares a sector count against a zone count, with
> args->nr_zones still 0 on the first call, so it always trips and
> blk_revalidate_disk_zones() always returns -ENODEV. The zone_sectors
> power-of-two check that both parents have is gone as well. This hits
> every zoned device, not just null_blk.
>
> Taking the axboe side of the function makes nullb0 come back on
> next-20260918 here (host-managed, chunk_sectors 131072), so it looks
> like the merge should just have taken that side.
>
> Same conflict, same bad outcome twice in a row now, so tomorrow's
> merge may hit it again unless the block tree has moved on in this
> area.
>
> Regards,
> Tao
>
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-09-20 13:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 12:58 next-20260917 and next-20260918: merge of the block tree breaks all zoned devices Tao Cui
2026-09-20 13:12 ` Stephen Rothwell [this message]
2026-09-20 15:18 ` Mark Brown
2026-09-20 22:37 ` Damien Le Moal
2026-09-21 0:49 ` Tao Cui
2026-09-21 2:07 ` Damien Le Moal
2026-09-21 2:31 ` Damien Le Moal
2026-09-21 10:29 ` Mark Brown
2026-09-21 8:24 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260920231226.771a0e21@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=axboe@kernel.dk \
--cc=broonie@kernel.org \
--cc=cui.tao@linux.dev \
--cc=cuitao@kylinos.cn \
--cc=dlemoal@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox