From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 11 01:18:31 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A105B16A4B3; Sat, 11 Oct 2003 01:18:31 -0700 (PDT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 645BF43FCB; Sat, 11 Oct 2003 01:18:30 -0700 (PDT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id CD0AD65495; Sat, 11 Oct 2003 09:18:27 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 90690-03; Sat, 11 Oct 2003 09:18:27 +0100 (BST) Received: from saboteur.dek.spc.org (lardystuffer.demon.co.uk [212.228.40.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id E30736549B; Sat, 11 Oct 2003 09:18:25 +0100 (BST) Received: by saboteur.dek.spc.org (Postfix, from userid 1001) id B060D35; Sat, 11 Oct 2003 09:18:22 +0100 (BST) Date: Sat, 11 Oct 2003 09:18:22 +0100 From: Bruce M Simpson To: Tim Kientzle Message-ID: <20031011081822.GA679@saboteur.dek.spc.org> Mail-Followup-To: Tim Kientzle , Bruce M Simpson , rwatson@freebsd.org, hsu@freebsd.org, freebsd-hackers@freebsd.org References: <20031008083059.GA520@garage.freebsd.pl> <20031008114506.I63940@beagle.fokus.fraunhofer.de> <20031008101251.GG6524@saboteur.dek.spc.org> <3F875172.5010309@acm.org> <3F8795A9.5020409@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F8795A9.5020409@acm.org> cc: hsu@freebsd.org cc: rwatson@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Dynamic reads without locking. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 08:18:31 -0000 On Fri, Oct 10, 2003 at 10:31:21PM -0700, Tim Kientzle wrote: > On further inspection, I'm pretty sure that sys/kern/subr_devstat.c > is not correct. OK. What about the shared page interface? Specifically the comment above devstat_end_transaction(). The generation count is used by the old sysctl interface. The shared page interface has a liberal sprinkling of atomic*() instructions. BMS