From owner-freebsd-net Sat May 18 2: 9:37 2002 Delivered-To: freebsd-net@freebsd.org Received: from goose.prod.itd.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by hub.freebsd.org (Postfix) with ESMTP id 4F1C637B405; Sat, 18 May 2002 02:09:33 -0700 (PDT) Received: from pool0026.cvx40-bradley.dialup.earthlink.net ([216.244.42.26] helo=mindspring.com) by goose.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 1790DP-0002Gf-00; Sat, 18 May 2002 02:09:27 -0700 Message-ID: <3CE61A25.61C789FA@mindspring.com> Date: Sat, 18 May 2002 02:08:53 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: "Kenneth D. Merry" , current@FreeBSD.org, net@FreeBSD.org Subject: Re: new zero copy sockets patches available References: <20020517233950.A36169@panzer.kdm.org> <20020518060255.GN20683@elvis.mu.org> <20020518003046.A36510@panzer.kdm.org> <20020518090032.GO20683@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Alfred Perlstein wrote: > * Kenneth D. Merry [020517 23:31] wrote: > > The problem here is that the mutex needs to be initialized before I can > > acquire it, and there's going to be a race between checking to see > > whether it has been initialized and actually initializing it. > > > ... > > Suggestions? > > *slaps forhead* > > Probably a SYSINIT? God, it's annoying that a statically declared mutex is not defacto initialized. Yeah, I understand the "witness" crap (if it's there); that doesn't make it any less annoying. Actually, a linker set (not a SYSINIT) could fix that... you would still need one sysinit to do the linkage of the statically declared structures, but it's at least doable. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message