From owner-cvs-all Tue May 28 17: 0:58 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id D052B37B414 for ; Tue, 28 May 2002 17:00:37 -0700 (PDT) Received: (qmail 23939 invoked from network); 29 May 2002 00:00:34 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 29 May 2002 00:00:35 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g4T00mF25552; Tue, 28 May 2002 20:00:48 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200205282306.g4SN60YG008784@khavrinen.lcs.mit.edu> Date: Tue, 28 May 2002 20:00:19 -0400 (EDT) From: John Baldwin To: Garrett Wollman Subject: Re: cvs commit: src/sys/kern uipc_socket.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 28-May-2002 Garrett Wollman wrote: > < said: > >> UMA only gives us a socket that has been uma_zfree()'d. The sysctl >> helper should gain a reference to each socket while holding an appropriate >> lock on the list before the copyout and drop it around the copyout if >> it is not doing so already. > > You're completely missing the point of this implementational strategy, > again. And you are being completely vague about what the current strategy actually is. Are reference counts too expensive or something? You are worried about a rather silly race because you can free things that are still in use. How is this sane? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message