1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

In GEOM debugging output, show consumer for cloned and duplicated bio's.

When using bio's created by g_clone_bio() or g_duplicate_bio()
their consumer device (the device to which their I/O requests
are sent) is listed by the geom debugging facility as [unknown].
If available, this update lists the consumer associated with
the bio's parent.

MFC after:    2 weeks
Sponsored by: Netflix
This commit is contained in:
Kirk McKusick 2022-01-30 17:20:10 -08:00
parent e58d0869c6
commit 85f7e9a4f0

View File

@ -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]";