svn commit: r212877 - stable/7/sys/geom
Alexander Motin
mav at FreeBSD.org
Sun Sep 19 19:53:42 UTC 2010
Author: mav
Date: Sun Sep 19 19:53:41 2010
New Revision: 212877
URL: http://svn.freebsd.org/changeset/base/212877
Log:
MFC r205619:
Do not fetch precise time of request start when stats collection disabled.
Modified:
stable/7/sys/geom/geom_io.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/geom/geom_io.c
==============================================================================
--- stable/7/sys/geom/geom_io.c Sun Sep 19 19:52:26 2010 (r212876)
+++ stable/7/sys/geom/geom_io.c Sun Sep 19 19:53:41 2010 (r212877)
@@ -374,7 +374,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-stable-7
mailing list