From: Christoph Hellwig <hch@lst.de>
To: Damien Le Moal <dlemoal@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
linux-scsi@vger.kernel.org,
"Martin K . Petersen" <martin.petersen@oracle.com>
Subject: Re: [PATCH v5 3/9] block: introduce storage element management
Date: Mon, 12 Oct 2026 16:23:41 +0200 [thread overview]
Message-ID: <20261012142341.GA8609@lst.de> (raw)
In-Reply-To: <20261012130121.1902634-4-dlemoal@kernel.org>
On Mon, Oct 12, 2026 at 10:01:15PM +0900, Damien Le Moal wrote:
> +static int disk_check_remove_error(struct gendisk *disk,
> + struct blk_se *elements,
> + unsigned int element_id)
> +{
> + unsigned int i;
> +
> + for (i = 0; i < disk->nr_storage_elements; i++) {
> + if (elements[i].id == element_id
> + && elements[i].status == BLK_SE_STS_REMOVE_ERROR)
kernel style places the && on the previous line.
> + noio_flag = memalloc_noio_save();
> + elements = kzalloc_objs(struct blk_se, disk->nr_storage_elements);
> + memalloc_noio_restore(noio_flag);
This is a bit odd, we can still use GFP_NOIO for now, but if we
want to use the scope API, I'd expect it to be used higher level and
not over a single call. Of course not a bug, but somewhat strange
looking code.
The rest looks good. I think the Sashiko comment is a bit confused,
as the code explicitly just flushes with a freeze/unfreeze, so
extending the scope is a strange suggestion.
next prev parent reply other threads:[~2026-10-12 14:23 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 [this message]
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
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=20261012142341.GA8609@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.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.