From owner-cvs-src@FreeBSD.ORG Mon Sep 12 16:41:13 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5A1616A41F; Mon, 12 Sep 2005 16:41:13 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DD9A43D48; Mon, 12 Sep 2005 16:41:11 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j8CGkcoK012228; Mon, 12 Sep 2005 12:46:38 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: src-committers@FreeBSD.org Date: Mon, 12 Sep 2005 12:40:49 -0400 User-Agent: KMail/1.6.2 References: <200509121531.j8CFVSxj055317@repoman.freebsd.org> In-Reply-To: <200509121531.j8CFVSxj055317@repoman.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="euc-kr" Content-Transfer-Encoding: 7bit Message-Id: <200509121240.51775.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.85.1/1079/Mon Sep 12 05:23:50 2005 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_subr.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 16:41:14 -0000 On Monday 12 September 2005 11:31 am, Jung-uk Kim wrote: > jkim 2005-09-12 15:31:28 UTC > > FreeBSD src repository > > Modified files: > sys/kern vfs_subr.c > Log: > use monotonic `time_uptime' instead of `time_second' > > Approved by: anholt (mentor) > Discussed on: arch > > Revision Changes Path > 1.645 +4 -4 src/sys/kern/vfs_subr.c Please make sure to use `time_uptime' if you need monotonic timestamp. Especially many network stacks seem to make sequence IDs and timestamps to expire from `time_second' instead of time_uptime. time_second is not guaranteed to be monotonic! time_uptime is. http://docs.freebsd.org/cgi/mid.cgi?8153.1126340565 http://docs.freebsd.org/cgi/mid.cgi?20050909214808.GA6021 I was almost tempted to do `sed -i -e 's/time_second/time_uptime' net*' (with few exceptions) but I wasn't sure how many standards really demand time_second in their actual packets/cells. :-( Thanks, Jung-uk Kim