Date: Mon, 04 Dec 2000 15:08:29 -0800 From: Cedric Berger <cedric@wireless-networks.com> To: smp@freebsd.org Subject: Re: Netgraph and SMP Message-ID: <3A2C23ED.14303B3C@wireless-networks.com> References: <200012042140.eB4Le9F01294@mass.osd.bsdi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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). > > In this model, you acquire the lock in 'shared' mode every time you enter > Netgraph, and release it when you leave. > > When you plan to make changes to Netgraph, you get the lock in > 'exclusive' mode. 'Intention' comes in here; now that you are trying to > get the lock in exclusive mode, your intention is recorded and nobody > else can get it in 'shared' mode, so eventually all the users drain out > of Netgraph and you get the lock. > How is this SIX-pack lock any different than a standard reader-writer lock? Cedric 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?3A2C23ED.14303B3C>