summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
authorups <ups@FreeBSD.org>2004-10-11 21:22:59 +0000
committerups <ups@FreeBSD.org>2004-10-11 21:22:59 +0000
commit9d97668203784b610f11445f81875398df240996 (patch)
tree56d2f61f56caec92faed5fb5ba8a1cae6dd80e4a /sys/geom/geom_io.c
parentd8f09c05804da00573488f3cc2a887fda779a3e4 (diff)
downloadFreeBSD-src-9d97668203784b610f11445f81875398df240996.zip
FreeBSD-src-9d97668203784b610f11445f81875398df240996.tar.gz
Trace information about a buffer while we still control it.
Reviewed by: phk Approved by: sam (mentor)
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index 188d78f..a4b64ba 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -254,6 +254,9 @@ g_io_request(struct bio *bp, struct g_consumer *cp)
bp->bio_length, cp->provider->sectorsize));
}
+ g_trace(G_T_BIO, "bio_request(%p) from %p(%s) to %p(%s) cmd %d",
+ bp, cp, cp->geom->name, pp, pp->name, bp->bio_cmd);
+
bp->bio_from = cp;
bp->bio_to = pp;
bp->bio_error = 0;
@@ -280,8 +283,6 @@ g_io_request(struct bio *bp, struct g_consumer *cp)
g_bioq_unlock(&g_bio_run_down);
/* Pass it on down. */
- g_trace(G_T_BIO, "bio_request(%p) from %p(%s) to %p(%s) cmd %d",
- bp, cp, cp->geom->name, pp, pp->name, bp->bio_cmd);
wakeup(&g_wait_down);
}
OpenPOWER on IntegriCloud