diff options
-rw-r--r-- | sys/geom/geom_io.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index 0b6525e..931b7c3 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -443,7 +443,10 @@ g_io_request(struct bio *bp, struct g_consumer *cp) ("Bio already on queue bp=%p", bp)); bp->bio_flags |= BIO_ONQUEUE; - binuptime(&bp->bio_t0); + if (g_collectstats) + binuptime(&bp->bio_t0); + else + getbinuptime(&bp->bio_t0); /* * The statistics collection is lockless, as such, but we |