From owner-freebsd-smp Tue Dec 5 1:41: 5 2000 From owner-freebsd-smp@FreeBSD.ORG Tue Dec 5 01:41:02 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id AF79937B400; Tue, 5 Dec 2000 01:41:00 -0800 (PST) Received: from timbuktu-59.budapest.interware.hu ([195.70.51.251] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 143Eao-0006zu-00; Tue, 05 Dec 2000 10:40:59 +0100 Sender: julian@FreeBSD.ORG Message-ID: <3A2CB814.C0E5841A@elischer.org> Date: Tue, 05 Dec 2000 01:40:36 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: John Baldwin Cc: Mike Smith , smp@FreeBSD.org, phk@FreeBSD.org, archie@FreeBSD.org, brian@FreeBSD.org, Brian Somers Subject: Re: Netgraph and SMP References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org John Baldwin wrote: > > On 04-Dec-00 Mike Smith wrote: > >> > The simplest structure for this is a shared/exclusive lock > >> > that supports intention; Terry would have ranted about this. (He would > >> > have called it a SIX-lock, I think). > >> [.....] > >> > This may sound simplistic, but given that you don't necessarily make > >> > changes to Netgraph very often, this is quite likely more than adequate > >> > for now. > >> > >> Nice, I never realised there were shared/exclusive locks available. > >> I think netgraph nodes would also need to have a ``modevent'' that > >> fails MOD_UNLOAD events if any locks are outstanding. > > > > Er, no, you just have to acquire the exclusive lock in the MOD_UNLOAD > > handler. > > > > As for the actual availibility of SIX-style locks; I'm fairly sure you > > can do this with the lockmgr. > > Yes. See the allproc_lock as an example. uh, folks.. the lock manager is a bloated pig.. if you think I'm going to call lock-manager for every packet as it passes through every node in its path, well, I think we have easier ways of slowing down the system..... > > -- > > John Baldwin -- http://www.FreeBSD.org/~jhb/ > PGP Key: http://www.baldwin.cx/~john/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message