Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2004 23:56:57 -0400
From:      Suleiman Souhlal <ssouhlal@FreeBSD.org>
To:        freebsd-arch@FreeBSD.org
Subject:   [RFC] sysctl locking
Message-ID:  <1097467017.5258.34.camel@zZzZ.segfaulted.com>

next in thread | raw e-mail | index | archive | help
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@vt.edu
The FreeBSD Project | ssouhlal@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1097467017.5258.34.camel>