From owner-freebsd-smp Thu Oct 12 18: 9:21 2000 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 631F737B66C; Thu, 12 Oct 2000 18:09:17 -0700 (PDT) Received: (from grog@localhost) by wantadilla.lemis.com (8.11.0/8.9.3) id e9D19EZ02578; Fri, 13 Oct 2000 10:39:14 +0930 (CST) (envelope-from grog) Date: Fri, 13 Oct 2000 10:39:14 +0930 From: Greg Lehey To: Jason Evans Cc: FreeBSD SMP list Subject: New mutexes (was: cvs commit: src/sys/conf param.c src/sys/kern kern_lock.c src/sys/sys kernel.h lock.h src/sys/vm vm_map.h) Message-ID: <20001013103913.B2467@wantadilla.lemis.com> References: <200010122237.PAA12428@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200010122237.PAA12428@freefall.freebsd.org>; from jasone@FreeBSD.org on Thu, Oct 12, 2000 at 03:37:29PM -0700 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 Thursday, 12 October 2000 at 15:37:29 -0700, Jason Evans wrote: > jasone 2000/10/12 15:37:29 PDT > > Modified files: > sys/conf param.c > sys/kern kern_lock.c > sys/sys kernel.h lock.h > sys/vm vm_map.h > Log: > For lockmgr mutex protection, use an array of mutexes that are allocated > and initialized during boot. This avoids bloating sizeof(struct lock). > As a side effect, it is no longer necessary to enforce the assumtion that > lockinit()/lockdestroy() calls are paired, so the LK_VALID flag has been > removed. I'm just doing the slides for the Con, and going through the sources I note that we have sprouted a plethora of mutexes over the last month. How are we keeping track of them? How does somebody who wants to add a new mutex know where the mines are? 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