From owner-freebsd-smp Mon Jan 8 22:16:21 2001 Delivered-To: freebsd-smp@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 2D71437B400 for ; Mon, 8 Jan 2001 22:16:04 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 35A316A90D; Tue, 9 Jan 2001 16:46:02 +1030 (CST) Date: Tue, 9 Jan 2001 16:46:02 +1030 From: Greg Lehey To: Alfred Perlstein Cc: FreeBSD SMP list Subject: Re: Allocating mutexes dynamically and WITNESS Message-ID: <20010109164602.D51397@wantadilla.lemis.com> References: <20010109161915.C51397@wantadilla.lemis.com> <20010108220847.L15744@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010108220847.L15744@fw.wintelcom.net>; from bright@wintelcom.net on Mon, Jan 08, 2001 at 10:08:47PM -0800 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Monday, 8 January 2001 at 22:08:47 -0800, Alfred Perlstein wrote: > * 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? 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