Date: Sun, 19 Sep 2010 19:53:42 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r212877 - stable/7/sys/geom Message-ID: <201009191953.o8JJrgZp013979@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009191953.o8JJrgZp013979>