Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Dec 2000 09:22:55 -0700
From:      Chuck Paterson <cp@bsdi.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        Mike Smith <msmith@FreeBSD.org>, brian@FreeBSD.org, archie@FreeBSD.org, phk@FreeBSD.org, smp@FreeBSD.org
Subject:   Re: Netgraph and SMP 
Message-ID:  <200012051622.eB5GMtm00562@berserker.bsdi.com>
In-Reply-To: Your message of "Mon, 04 Dec 2000 13:40:08 PST." <200012042140.eB4Le9F01294@mass.osd.bsdi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Julian,

A standard lock manager lock will provide the functionality
Mike talks about below.

Chuck




Mike Smith wrote on: Mon, 04 Dec 2000 13:40:08 PST
}
}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.
}
}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.
}



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?200012051622.eB5GMtm00562>