git: bf02faa1ae7b - stable/13 - In GEOM debugging output, show consumer for cloned and duplicated bio's.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Feb 2022 00:37:55 UTC
The branch stable/13 has been updated by mckusick:
URL: https://cgit.FreeBSD.org/src/commit/?id=bf02faa1ae7bc8a908e01af9440b1e83248ffa8e
commit bf02faa1ae7bc8a908e01af9440b1e83248ffa8e
Author: Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2022-01-31 01:20:10 +0000
Commit: Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2022-02-16 00:27:55 +0000
In GEOM debugging output, show consumer for cloned and duplicated bio's.
(cherry picked from commit 85f7e9a4f0393277b85a247543f71700c5eebb1f)
---
sys/geom/geom_io.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index 7c9dc4164767..701e2ca6a57c 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -1017,6 +1017,8 @@ g_format_bio(struct sbuf *sb, const struct bio *bp)
if (bp->bio_to != NULL)
pname = bp->bio_to->name;
+ else if (bp->bio_parent != NULL && bp->bio_parent->bio_to != NULL)
+ pname = bp->bio_parent->bio_to->name;
else
pname = "[unknown]";