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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to