From: Damien Le Moal <dlemoal@kernel.org>
To: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, linux-nvme@lists.infradead.org,
Keith Busch <keith.busch@wdc.com>, Christoph Hellwig <hch@lst.de>,
dm-devel@lists.linux.dev, Mike Snitzer <snitzer@kernel.org>,
Mikulas Patocka <mpatocka@redhat.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org,
Carlos Maiolino <cem@kernel.org>,
linux-btrfs@vger.kernel.org, David Sterba <dsterba@suse.com>
Subject: [PATCH v4 12/15] block: improve zone_wplugs debugfs attribute output
Date: Wed, 5 Nov 2025 06:22:46 +0900 [thread overview]
Message-ID: <20251104212249.1075412-13-dlemoal@kernel.org> (raw)
In-Reply-To: <20251104212249.1075412-1-dlemoal@kernel.org>
Make the output of the zone_wplugs debugfs attribute file more easily
readable by adding the name of the zone write plugs fields in the
output.
No functional changes.
Suggested-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
---
block/blk-zoned.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 7a7b0704f095..3104fda5809b 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -2313,8 +2313,10 @@ static void queue_zone_wplug_show(struct blk_zone_wplug *zwplug,
zwp_bio_list_size = bio_list_size(&zwplug->bio_list);
spin_unlock_irqrestore(&zwplug->lock, flags);
- seq_printf(m, "%u 0x%x %u %u %u\n", zwp_zone_no, zwp_flags, zwp_ref,
- zwp_wp_offset, zwp_bio_list_size);
+ seq_printf(m,
+ "Zone no: %u, flags: 0x%x, ref: %u, wp ofst: %u, pending BIO: %u\n",
+ zwp_zone_no, zwp_flags, zwp_ref,
+ zwp_wp_offset, zwp_bio_list_size);
}
int queue_zone_wplugs_show(void *data, struct seq_file *m)
--
2.51.0
next prev parent reply other threads:[~2025-11-04 21:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 21:22 [PATCH v4 00/15] Introduce cached report zones Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 01/15] block: handle zone management operations completions Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 02/15] block: freeze queue when updating zone resources Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 03/15] block: cleanup blkdev_report_zones() Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 04/15] block: introduce disk_report_zone() Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 05/15] block: reorganize struct blk_zone_wplug Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 06/15] block: use zone condition to determine conventional zones Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 07/15] block: track zone conditions Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 08/15] block: refactor blkdev_report_zones() code Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 09/15] block: introduce blkdev_get_zone_info() Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 10/15] block: introduce blkdev_report_zones_cached() Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 11/15] block: introduce BLKREPORTZONESV2 ioctl Damien Le Moal
2025-11-04 21:22 ` Damien Le Moal [this message]
2025-11-04 21:22 ` [PATCH v4 13/15] block: add zone write plug condition to debugfs zone_wplugs Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 14/15] btrfs: use blkdev_report_zones_cached() Damien Le Moal
2025-11-04 21:22 ` [PATCH v4 15/15] xfs: " Damien Le Moal
2025-11-05 3:56 ` [PATCH v4 00/15] Introduce cached report zones Martin K. Petersen
2025-11-05 15:45 ` Jens Axboe
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=20251104212249.1075412-13-dlemoal@kernel.org \
--to=dlemoal@kernel.org \
--cc=axboe@kernel.dk \
--cc=cem@kernel.org \
--cc=dm-devel@lists.linux.dev \
--cc=dsterba@suse.com \
--cc=hch@lst.de \
--cc=keith.busch@wdc.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mpatocka@redhat.com \
--cc=snitzer@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;
as well as URLs for NNTP newsgroup(s).