From owner-freebsd-hackers@FreeBSD.ORG Fri May 29 13:36:26 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CA545A7 for ; Fri, 29 May 2015 13:36:26 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 90A7610CB for ; Fri, 29 May 2015 13:36:26 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 1F7373BD35; Fri, 29 May 2015 13:36:19 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.9/8.14.9) with ESMTP id t4TDaIJV085087; Fri, 29 May 2015 13:36:18 GMT (envelope-from phk@phk.freebsd.dk) To: Sebastian Huber cc: freebsd-hackers@freebsd.org Subject: Re: Problem with timecounters and memory model In-reply-to: <55686300.3080100@embedded-brains.de> From: "Poul-Henning Kamp" References: <55686300.3080100@embedded-brains.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <85085.1432906577.1@critter.freebsd.dk> Date: Fri, 29 May 2015 13:36:18 +0000 Message-ID: <85086.1432906578@critter.freebsd.dk> X-Mailman-Approved-At: Fri, 29 May 2015 13:55:57 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2015 13:36:26 -0000 -------- In message <55686300.3080100@embedded-brains.de>, Sebastian Huber writes: >This version seems to work at least on uni-processor systems. Shouldn't >there be real memory barriers the synchronize the reads/writes to >th_generation for SMP machines? yes, there should. (I must admit that I havn't looked at that code for about five or ten years.) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.