From owner-freebsd-smp Mon Dec 4 15: 7:52 2000 From owner-freebsd-smp@FreeBSD.ORG Mon Dec 4 15:07:50 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from crewsoft.com (ns.aenet.net [157.22.214.1]) by hub.freebsd.org (Postfix) with ESMTP id 59EF537B401 for ; Mon, 4 Dec 2000 15:07:50 -0800 (PST) Received: from [63.197.8.222] (HELO wireless-networks.com) by crewsoft.com (CommuniGate Pro SMTP 3.3b5) with ESMTP id 368677 for smp@freebsd.org; Mon, 04 Dec 2000 15:10:01 -0800 Message-ID: <3A2C23ED.14303B3C@wireless-networks.com> Date: Mon, 04 Dec 2000 15:08:29 -0800 From: Cedric Berger X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: smp@freebsd.org Subject: Re: Netgraph and SMP References: <200012042140.eB4Le9F01294@mass.osd.bsdi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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