Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Dec 2000 01:40:36 -0800
From:      Julian Elischer <julian@elischer.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Mike Smith <msmith@FreeBSD.org>, smp@FreeBSD.org, phk@FreeBSD.org, archie@FreeBSD.org, brian@FreeBSD.org, Brian Somers <brian@Awfulhak.org>
Subject:   Re: Netgraph and SMP
Message-ID:  <3A2CB814.C0E5841A@elischer.org>
References:  <XFMail.001204144630.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A2CB814.C0E5841A>