Date: Sun, 17 Dec 2000 14:01:39 -0800 From: Julian Elischer <julian@elischer.org> To: Chuck Paterson <cp@bsdi.com> Cc: smp@FreeBSD.ORG Subject: Re: Netgraph locking primatives. take 1. Message-ID: <3A3D37C3.4D5B1FF7@elischer.org> References: <200012172004.eBHK4BP14873@berserker.bsdi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Paterson wrote: > > Julian > Unlike in you example program you probably want to make it > explicity illegal to request a write lock while holding a reader > lock, otherwise you have to deal with the multiple reader upgrade > deadlock problem. > > Chuck have a look at the slightly cleaned up version at http://www.freebsd.org/~julian/locks.c it has some code that shows how it might be used by netgraph. (dummy()) -- __--_|\ 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?3A3D37C3.4D5B1FF7>