From owner-cvs-all Sat May 25 12:10:23 2002 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 048A737B411; Sat, 25 May 2002 12:10:16 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.3) with ESMTP id g4PJAFEN088381; Sat, 25 May 2002 15:10:15 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.3/Submit) id g4PJAFn2088378; Sat, 25 May 2002 15:10:15 -0400 (EDT) Date: Sat, 25 May 2002 15:10:15 -0400 (EDT) From: Garrett Wollman Message-Id: <200205251910.g4PJAFn2088378@khavrinen.lcs.mit.edu> To: John Baldwin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern uipc_socket.c In-Reply-To: References: <20020521221655.GM54960@elvis.mu.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 < said: > Then put the XXX over the gencount not the bzero so it actually makes sense. It's the bzero that causes the race. The comment is in the right place, and makes perfect sense if you've paid any attention to non-blocking synchronization. Right now in -current it's something of a noop, thanks to Giant. The purpose is to make it possible to copy out a list of thousands of sockets reliably (mostly) without blocking the network stack, so that activity doesn't grind to a halt whenever someone runs `netstat' on a machine with 10,000 sockets outstanding. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message