From owner-freebsd-smp Sat Jan 19 12: 8:29 2002 Delivered-To: freebsd-smp@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 99A4F37B404 for ; Sat, 19 Jan 2002 12:08:24 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g0JK8MD51338; Sat, 19 Jan 2002 12:08:22 -0800 (PST) (envelope-from dillon) Date: Sat, 19 Jan 2002 12:08:22 -0800 (PST) From: Matthew Dillon Message-Id: <200201192008.g0JK8MD51338@apollo.backplane.com> To: Alfred Perlstein Cc: smp@FreeBSD.ORG Subject: Re: help with mutex_pool please? References: <20020119080125.X13686@elvis.mu.org> <200201191942.g0JJgLK50974@apollo.backplane.com> <20020119114848.A13686@elvis.mu.org> Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org :No, it locks hard. What I can do is see if it's either uidinfo or :file locking that's causing it (or both) and get back to you. That :is unless you want to take a shot at it. : :Perhaps you can suggest some debugging KTR/printfs to be added to the :subsystem? : :Btw, mtx_pool_lock is sort of misleading, I thought it meant "lock :a pool mutex", but it really means lock the pool containing the :mutex. Maybe mtx_pool_lock/unlock shouldn't take void *, they :should take a "struct mutex_pool *" or something and make the caller :explicitly do the mutex_pool_find? : :-- :-Alfred Perlstein [alfred@freebsd.org] Make sure you recompile the entire kernel and all its modules from scratch as well. I don't understand re: mtx_pool_lock(). It locks a pool mutex which it calculates based on a void * ptr. It's meant to short-cut very simple leaf level mutexes for structures in which you might not otherwise want to embed a mutex pointer. My intention was to eventually use it for really small structures like vm_page's and pmap entries where you can't afford to bloat the structure. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message