From owner-freebsd-arch@FreeBSD.ORG Sun Apr 13 15:23:02 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13B351065677 for ; Sun, 13 Apr 2008 15:23:02 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id CB7DC8FC55 for ; Sun, 13 Apr 2008 15:23:01 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 0135D17104; Sun, 13 Apr 2008 15:22:59 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m3DFMw3v001310; Sun, 13 Apr 2008 15:22:59 GMT (envelope-from phk@critter.freebsd.dk) To: Jeff Roberson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 12 Apr 2008 22:24:22 -1000." <20080412221654.S959@desktop> Date: Sun, 13 Apr 2008 15:22:58 +0000 Message-ID: <1309.1208100178@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: arch@freebsd.org Subject: Re: f_offset X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2008 15:23:02 -0000 In message <20080412221654.S959@desktop>, Jeff Roberson writes: >> The non p-prefix versions should always be serialized, because there >> is know way of knowing where they read/write if you don't. > >Well that's at odds with what the standard says and what others implement. >I think there is a clear case for serializing writes. I don't see what >advantage we get from serializing reads. The heavy cost of >synchronization should be justified by actual need. If you don't serialize read(2) and readv(2), how do you know where they read from ? -- 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.