Date: Mon, 8 Jan 2001 22:08:47 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: Greg Lehey <grog@lemis.com> Cc: FreeBSD SMP list <FreeBSD-smp@FreeBSD.ORG> Subject: Re: Allocating mutexes dynamically and WITNESS Message-ID: <20010108220847.L15744@fw.wintelcom.net> In-Reply-To: <20010109161915.C51397@wantadilla.lemis.com>; from grog@lemis.com on Tue, Jan 09, 2001 at 04:19:15PM %2B1030 References: <20010109161915.C51397@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Greg Lehey <grog@lemis.com> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010108220847.L15744>