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 v2 3/3] null_blk: clean up setting zones read-only or offline
Date: Thu, 22 Oct 2026 11:36:00 +0200 [thread overview]
Message-ID: <64df4dbc-24ce-4aaa-8a9b-afa9a9beeaec@kernel.org> (raw)
In-Reply-To: <20261022092158.2248831-8-cassel@kernel.org>
On 2026/10/22 11:22, Niklas Cassel wrote:
> null_set_zone_cond() takes a zone condition, even though read-only and
> offline are the only zone conditions that it can set. Because of this,
> it needs a WARN_ON_ONCE() to reject any other zone condition, and its
> name suggests a generic helper that can set any zone condition.
>
> Rename null_set_zone_cond() to null_set_zone_readonly_or_offline(), and
> replace its zone condition argument with a bool, set_offline, which
> selects between the read-only and offline conditions. Also remove the
> comment above the function, as it only repeats the new function name.
>
> zone_cond_store() keeps taking a zone condition, as it, unlike
> null_set_zone_readonly_or_offline(), contains generic code, and might
> be extended to support additional zone conditions in the future.
>
> No functional change, as zone_cond_store() is only called with the
> read-only or offline condition.
>
> Suggested-by: Damien Le Moal <dlemoal@kernel.org>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Looks good.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
prev parent reply other threads:[~2026-10-22 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 9:21 [PATCH v2 0/3] null_blk: zone resource management fixes Niklas Cassel
2026-10-22 9:22 ` [PATCH v2 1/3] null_blk: fix opening closed zones at the active zone limit Niklas Cassel
2026-10-22 9:22 ` [PATCH v2 2/3] null_blk: don't finish zones to set them read-only or offline Niklas Cassel
2026-10-22 9:22 ` [PATCH v2 3/3] null_blk: clean up setting zones " Niklas Cassel
2026-10-22 9:36 ` Damien Le Moal [this message]
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=64df4dbc-24ce-4aaa-8a9b-afa9a9beeaec@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.