From: sashiko-bot@kernel.org
To: "Damien Le Moal" <dlemoal@kernel.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH v5 6/9] zloop: add degrade_element control command
Date: Mon, 12 Oct 2026 14:02:21 +0000 [thread overview]
Message-ID: <sashiko-outbox-168230@kernel.org> (raw)
In-Reply-To: <20261012130121.1902634-7-dlemoal@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] block: documentation format string mismatch for element_id in zloop_ctl_show()
--
commit 09c168795398e63847062539d79768bb5214f9cb
Author: Damien Le Moal <dlemoal@kernel.org>
zloop: add degrade_element control command
This commit introduces a new degrade_element control command to allow users
to mark storage elements of a zloop device as degraded. The user specifies the
element ID to be degraded via the element_id option. Operations to zones
served by degraded elements will then be failed.
> diff --git a/drivers/block/zloop.c b/drivers/block/zloop.c
> index 11481577b9cb2..26d8335508a16 100644
> --- a/drivers/block/zloop.c
> +++ b/drivers/block/zloop.c
[ ... ]
> @@ -2303,6 +2384,10 @@ static int zloop_ctl_show(struct seq_file *seq_file, void *private)
> seq_puts(seq_file, zloop_ctl_ops[1].name);
> seq_puts(seq_file, " id=%d\n");
>
> + /* Degrade element operation */
> + seq_puts(seq_file, zloop_ctl_ops[2].name);
> + seq_puts(seq_file, " id=%d,element_id=%d\n");
[Severity: Low]
Does this documentation output accurately reflect the expected format?
The option parser for zloop uses match_uint() for ZLOOP_OPT_ELEMENT_ID:
drivers/block/zloop.c:zloop_parse_options() {
...
case ZLOOP_OPT_ELEMENT_ID:
if (match_uint(args, &token)) {
ret = -EINVAL;
goto out;
}
opts->element_id = token;
break;
...
}
If a user follows the %d documentation from zloop_ctl_show() and provides a
signed negative integer, the parser will reject it. Should the output string
in zloop_ctl_show() use %u instead to match the parser's requirement and avoid
misleading users?
> +
> return 0;
> }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261012130121.1902634-1-dlemoal@kernel.org?part=6
next prev parent reply other threads:[~2026-10-12 14:02 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 13:01 [PATCH v5 0/9] Add support for storage element depopulation Damien Le Moal
2026-10-12 13:01 ` [PATCH v5 1/9] block: introduce disk_zone_is_offline() Damien Le Moal
2026-10-12 13:01 ` [PATCH v5 2/9] block: refactor blk_revalidate_disk_zones() Damien Le Moal
2026-10-12 13:01 ` [PATCH v5 3/9] block: introduce storage element management Damien Le Moal
2026-10-12 13:23 ` sashiko-bot
2026-10-12 13:27 ` Damien Le Moal
2026-10-12 14:23 ` Christoph Hellwig
2026-10-12 13:01 ` [PATCH v5 4/9] block: add storage element management ioctls Damien Le Moal
2026-10-12 13:40 ` sashiko-bot
2026-10-12 13:49 ` Damien Le Moal
2026-10-12 14:31 ` Christoph Hellwig
2026-10-12 14:56 ` Damien Le Moal
2026-10-12 14:57 ` Christoph Hellwig
2026-10-12 14:59 ` Damien Le Moal
2026-10-12 13:01 ` [PATCH v5 5/9] zloop: add storage element emulation Damien Le Moal
2026-10-12 13:52 ` sashiko-bot
2026-10-12 13:01 ` [PATCH v5 6/9] zloop: add degrade_element control command Damien Le Moal
2026-10-12 14:02 ` sashiko-bot [this message]
2026-10-12 14:43 ` Christoph Hellwig
2026-10-12 13:01 ` [PATCH v5 7/9] scsi: sd: fail read commands to offline zones early Damien Le Moal
2026-10-12 14:36 ` Christoph Hellwig
2026-10-12 13:01 ` [PATCH v5 8/9] scsi: sd_zbc: always revalidate zones for disks supporting head depopulation Damien Le Moal
2026-10-12 14:19 ` sashiko-bot
2026-10-12 14:37 ` Christoph Hellwig
2026-10-12 14:57 ` Damien Le Moal
2026-10-12 13:01 ` [PATCH v5 9/9] scsi: sd_zbc: define storage element management operations Damien Le Moal
2026-10-12 14:38 ` Christoph Hellwig
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=sashiko-outbox-168230@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dlemoal@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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