From b64dc964ac88c9f7dcfa09ea67af3a78ac8a12fb Mon Sep 17 00:00:00 2001 From: mav Date: Wed, 24 Mar 2010 18:04:25 +0000 Subject: Do not fetch precise time of request start when stats collection disabled. Reviewed by: pjd, phk --- sys/geom/geom_io.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/geom/geom_io.c') 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 -- cgit v1.1