From owner-freebsd-smp Mon Apr 1 23:19:47 2002 Delivered-To: freebsd-smp@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id D0BF737B416; Mon, 1 Apr 2002 23:19:42 -0800 (PST) Received: from localhost (arr@localhost) by fledge.watson.org (8.11.6/8.11.6) with SMTP id g327JWc22386; Tue, 2 Apr 2002 02:19:32 -0500 (EST) (envelope-from arr@FreeBSD.org) X-Authentication-Warning: fledge.watson.org: arr owned process doing -bs Date: Tue, 2 Apr 2002 02:19:30 -0500 (EST) From: "Andrew R. Reiter" X-Sender: arr@fledge.watson.org To: Alfred Perlstein Cc: "Andrew R. Reiter" , smp@FreeBSD.org Subject: Re: Where to initialize certain locks... In-Reply-To: <20020402071440.GF93885@elvis.mu.org> Message-ID: MIME-Version: 1.0 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 Mon, 1 Apr 2002, Alfred Perlstein wrote: :* Andrew R. Reiter [020401 22:16] wrote: :> :> I've been looking at some global values that are not associated with any :> one subsystem, but need a lock at some point in order to guarantee correct :> bheavior -- specifically, at the moment, the securelevel value. I do not :> right away see a clean place for the related lock to be initialized... Am :> I missing some SYSINIT() (or SYSINIT()s) that are meant for helping to :> initialize locks in this type of situation while still :> protecting/promoting correct order (to ensure we init prior to a lock :> attempt)? Or is that not a good path to go down? : :SYSINIT should work provided you run them after the mutex subsystem is :setup. :) Well, yes :-) My main concern is that I kind of fear starting to encounter a number of these situations as we go along and need to now have a number of SYSINITs, each of which only is there to initialize a single mutex -- also the issue of where to put the SYSINITs (and the related code). Is this something Im just over thinking about? :-)) Andrew -- Andrew R. Reiter arr@watson.org arr@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message