need for another mutex type/flag?
phk at phk.freebsd.dk
Wed Jan 28 00:54:15 PST 2009
In message <alpine.BSF.2.00.0901272001310.51605 at fledge.watson.org>, Robert Wats
>Right, but what I'm saying is: if we have a MTX_LEAFNODE flag for mtx_init(9),
>it won't work for any code that holds the lock over a call to the mbuf
>routines. I am happy with us adding a MTX_LEAFNODE flag and would use it
>myself, I just not sure it will work for Netgraph node mutexes.
100% agreement there, the kind of usage I expected for this was the
3-line protected regions that grab a reference count og stick something
onto a list etc.
Memory allocation and similar would not apply.
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-arch