From owner-freebsd-smp Mon Jan 8 22: 9: 8 2001 Delivered-To: freebsd-smp@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 70AD237B401 for ; Mon, 8 Jan 2001 22:08:52 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f0968lG14715; Mon, 8 Jan 2001 22:08:47 -0800 (PST) Date: Mon, 8 Jan 2001 22:08:47 -0800 From: Alfred Perlstein To: Greg Lehey Cc: FreeBSD SMP list Subject: Re: Allocating mutexes dynamically and WITNESS Message-ID: <20010108220847.L15744@fw.wintelcom.net> References: <20010109161915.C51397@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010109161915.C51397@wantadilla.lemis.com>; from grog@lemis.com on Tue, Jan 09, 2001 at 04:19:15PM +1030 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Greg Lehey [010108 21:49] wrote: > I'm about to add a lock mutex to Vinum RAID-[45] plexes. Each plex > gets its own mutex, since it only applies to a specific plex. That's > fine in the normal case: I just add a MUTEX_DECLARE to the plex struct > definition and all is fine and dandy. But if I do this with WITNESS > defined, it tries to initialize it. Any thoughts about how to DTRT > here? Have a struct mtx and use mutex_init on it? -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message