svn commit: r205619 - head/sys/geom

Alexander Motin mav at FreeBSD.org
Wed Mar 24 18:04:25 UTC 2010


Author: mav
Date: Wed Mar 24 18:04:25 2010
New Revision: 205619
URL: http://svn.freebsd.org/changeset/base/205619

Log:
  Do not fetch precise time of request start when stats collection disabled.
  
  Reviewed by:	pjd, phk

Modified:
  head/sys/geom/geom_io.c

Modified: head/sys/geom/geom_io.c
==============================================================================
--- head/sys/geom/geom_io.c	Wed Mar 24 17:38:08 2010	(r205618)
+++ head/sys/geom/geom_io.c	Wed Mar 24 18:04:25 2010	(r205619)
@@ -443,7 +443,10 @@ g_io_request(struct bio *bp, struct g_co
 	    ("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


More information about the svn-src-head mailing list