Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 18:04:25 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r205619 - head/sys/geom
Message-ID:  <201003241804.o2OI4PNJ073357@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003241804.o2OI4PNJ073357>