From: Damien Le Moal <dlemoal@kernel.org>
To: Niklas Cassel <cassel@kernel.org>, Jens Axboe <axboe@kernel.dk>
Cc: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>,
linux-block@vger.kernel.org
Subject: Re: [PATCH 1/2] null_blk: fix opening closed zones at the active zone limit
Date: Thu, 22 Oct 2026 09:09:29 +0200 [thread overview]
Message-ID: <116eadd6-fca6-4c11-a420-46eef145c48a@kernel.org> (raw)
In-Reply-To: <20261021202100.2017938-5-cassel@kernel.org>
On 2026/10/21 22:21, Niklas Cassel wrote:
> When the open zone limit is reached, null_check_open() closes an
> implicitly open zone only if the active zone limit is not reached.
>
> Closing an implicitly open zone does not change the number of active
> zones, so this check is wrong. For an empty zone, the active zone limit
> was already checked by null_check_zone_resources(). For a closed zone,
> the check makes writing to, opening or finishing the zone fail with
> BLK_STS_ZONE_OPEN_RESOURCE at the active zone limit, whereas ZBC-3
> (4.5.3.2.7.2) and NVMe ZNS (2.1.1.4.1) require closing an implicitly
> open zone instead.
>
> Remove the check, and update the comment above
> null_check_zone_resources() accordingly.
>
> Fixes: dc4d137ee3b7 ("null_blk: add support for max open/active zone limit for zoned devices")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Looks good.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2026-10-22 7:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-21 20:21 [PATCH 0/2] null_blk: zone resource management fixes Niklas Cassel
2026-10-21 20:21 ` [PATCH 1/2] null_blk: fix opening closed zones at the active zone limit Niklas Cassel
2026-10-22 7:09 ` Damien Le Moal [this message]
2026-10-21 20:21 ` [PATCH 2/2] null_blk: don't finish zones to set them read-only or offline Niklas Cassel
2026-10-22 7:15 ` Damien Le Moal
2026-10-22 7:36 ` Niklas Cassel
2026-10-22 7:42 ` Damien Le Moal
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=116eadd6-fca6-4c11-a420-46eef145c48a@kernel.org \
--to=dlemoal@kernel.org \
--cc=axboe@kernel.dk \
--cc=cassel@kernel.org \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-block@vger.kernel.org \
--cc=shinichiro.kawasaki@wdc.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.