[RFC] sysctl locking

Suleiman Souhlal ssouhlal at FreeBSD.org
Sun Oct 10 20:57:08 PDT 2004


Hello,

In the past few days, I have managed to remove Giant from sysctl. The
patch is at
http://people.freebsd.org/~ssouhlal/testing/sysctl-locking.diff
This is the first time I ever do something like this, so I wouldn't be
surprised if I am doing something wrong.
Any suggestions/comments?

green@ also pointed out that I might need to use memory barriers, or
some other synchronization primitive, when setting oid_owner to NULL in
sysctl_oid_disown, but I am unsure on how to do that..

Thanks in advance for your help.

-- 
Suleiman Souhlal    | ssouhlal at vt.edu
The FreeBSD Project | ssouhlal at FreeBSD.org



More information about the freebsd-arch mailing list