kern_sysctl.c locking

Joerg Sonnenberger joerg at britannica.bec.de
Fri Mar 26 09:42:20 PST 2004


On Fri, Mar 26, 2004 at 08:42:54AM -0800, Matthew Dillon wrote:
>     It looks reasonable on its face.  I briefly considered using tokens
>     there but that would have required some shifting around of the
>     potentially blocking malloc()'s (that is, the sysctl code was not designed
>     very well in the first place but it probably isn't worth the effort to
>     rewrite it).

So did I. The problem for me was the query path, which can block for
procedures. That could do nasty things I wanted to avoid. We can always
do a proper rewrite of the code to make better, but just like you said,
that might not be worth the effort.

Joerg

> 
> 					-Matt
> 					Matthew Dillon 
> 					<dillon at xxxxxxxxxxxxx>
> 





More information about the Submit mailing list