From owner-svn-src-head@FreeBSD.ORG Wed Mar 24 18:04:25 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0FD51065672; Wed, 24 Mar 2010 18:04:25 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B01558FC13; Wed, 24 Mar 2010 18:04:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o2OI4P5k073359; Wed, 24 Mar 2010 18:04:25 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o2OI4PNJ073357; Wed, 24 Mar 2010 18:04:25 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201003241804.o2OI4PNJ073357@svn.freebsd.org> From: Alexander Motin Date: Wed, 24 Mar 2010 18:04:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r205619 - head/sys/geom X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2010 18:04:25 -0000 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