From owner-freebsd-smp Thu Apr 25 7:45: 8 2002 Delivered-To: freebsd-smp@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (cvsup2.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id 6F02737B422; Thu, 25 Apr 2002 07:45:01 -0700 (PDT) Received: from silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp [IPv6:3ffe:b80:5b0:3:280:c8ff:fe6b:6d73]) by rina.r.dl.itc.u-tokyo.ac.jp (8.12.2/3.7W-rina.r-Nankai-Koya) with ESMTP id g3PEio0o064224 ; Thu, 25 Apr 2002 23:44:51 +0900 (JST) Received: from silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (8.12.2/3.7W-carrots-Keikyu-Kurihama) with ESMTP id g3PEhTX5017744 ; Thu, 25 Apr 2002 23:44:50 +0900 (JST) Message-Id: <200204251444.g3PEhTX5017744@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> Date: Thu, 25 Apr 2002 23:43:29 +0900 From: Seigo Tanimura To: Alfred Perlstein Cc: Seigo Tanimura , John Baldwin , smp@FreeBSD.org, current@FreeBSD.org Subject: A sigio lock (was: Re: Locking down a socket, milestone 1) In-Reply-To: <200204250901.g3P91p0o027325@rina.r.dl.itc.u-tokyo.ac.jp> References: <200204241110.g3OB8u8t006194@bunko> <200204250819.g3P8J00o013784@rina.r.dl.itc.u-tokyo.ac.jp> <20020425083644.GM38320@elvis.mu.org> <200204250901.g3P91p0o027325@rina.r.dl.itc.u-tokyo.ac.jp> User-Agent: Wanderlust/2.8.1 (Something) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 25 Apr 2002 18:01:51 +0900, Seigo Tanimura said: Seigo> On Thu, 25 Apr 2002 01:36:44 -0700, Seigo> Alfred Perlstein said: bright> * Seigo Tanimura [020425 01:19] wrote: >>> >> >>> >> http://people.FreeBSD.org/~tanimura/patches/socket_milestone1.diff.gz >>> >> bright> Why is there a "sigio" lock in this delta? Seigo> I should have stripped that out, but my patch would result in lock Seigo> order reversal between a socket lock and a process lock. As we Seigo> protect p_fd by a process lock, we have to lock it prior to locking a Seigo> file descriptor or a socket. Seigo> I suppose I have to commit the stripped patch of a sigio lock first. The patch of a sigio lock is not stripped out at: http://people.FreeBSD.org/~tanimura/patches/sigio.diff.gz -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message