DragonFly BSD
DragonFly submit List (threaded) for 2004-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: kern_sysctl.c locking


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Mar 2004 08:42:54 -0800 (PST)

:Hi all,
:the patch ftp://82.144.62.50/kern_sysctl.c.diff adds proper locking
:to the sysctl code to make it SMP safe. Additionally I made the printf
:for unregistering an OID_AUTO field a panic, which simplifies the code
:and is IMO a real error condition.
:
:Please test this code, esp. on SMP, TTC is 3 days.
:
:Joerg

    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).

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]