Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2002 15:10:15 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern uipc_socket.c
Message-ID:  <200205251910.g4PJAFn2088378@khavrinen.lcs.mit.edu>
In-Reply-To: <XFMail.20020521183303.jhb@FreeBSD.org>
References:  <20020521221655.GM54960@elvis.mu.org> <XFMail.20020521183303.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 21 May 2002 18:33:03 -0400 (EDT), John Baldwin <jhb@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205251910.g4PJAFn2088378>