From owner-freebsd-arch@FreeBSD.ORG Mon Oct 11 03:57:08 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67CB916A4CE for ; Mon, 11 Oct 2004 03:57:08 +0000 (GMT) Received: from server1.astraldream.net (astraldream.net [69.20.5.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id F061743D48 for ; Mon, 11 Oct 2004 03:57:07 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.0.20] (63-170-138-118.cst-sg.blacksburg.ntc-com.net [63.170.138.118]) (authenticated (0 bits)) by server1.astraldream.net (8.11.6/8.11.6) with ESMTP id i9B3v1X19628 verified NO) for ; Sun, 10 Oct 2004 23:57:06 -0400 From: Suleiman Souhlal To: freebsd-arch@FreeBSD.org Content-Type: text/plain Message-Id: <1097467017.5258.34.camel@zZzZ.segfaulted.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 10 Oct 2004 23:56:57 -0400 Content-Transfer-Encoding: 7bit Subject: [RFC] sysctl locking X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 03:57:08 -0000 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