Date: Tue, 9 Jan 2001 16:46:02 +1030 From: Greg Lehey <grog@lemis.com> To: Alfred Perlstein <bright@wintelcom.net> Cc: FreeBSD SMP list <FreeBSD-smp@FreeBSD.ORG> Subject: Re: Allocating mutexes dynamically and WITNESS Message-ID: <20010109164602.D51397@wantadilla.lemis.com> In-Reply-To: <20010108220847.L15744@fw.wintelcom.net>; from bright@wintelcom.net on Mon, Jan 08, 2001 at 10:08:47PM -0800 References: <20010109161915.C51397@wantadilla.lemis.com> <20010108220847.L15744@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 8 January 2001 at 22:08:47 -0800, Alfred Perlstein wrote: > * 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? Oh. I thought you had to do both. (crawls into corner and dies of shame) Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers 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?20010109164602.D51397>