Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 19:45:09 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273403 - head/sys/kern
Message-ID:  <201410211945.s9LJj9Y3052533@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Tue Oct 21 19:45:08 2014
New Revision: 273403
URL: https://svnweb.freebsd.org/changeset/base/273403

Log:
  Make sysctl name2oid shared-locked as well.
  
  This is a follow-up to r273401.

Modified:
  head/sys/kern/kern_sysctl.c

Modified: head/sys/kern/kern_sysctl.c
==============================================================================
--- head/sys/kern/kern_sysctl.c	Tue Oct 21 19:36:20 2014	(r273402)
+++ head/sys/kern/kern_sysctl.c	Tue Oct 21 19:45:08 2014	(r273403)
@@ -1021,9 +1021,9 @@ sysctl_sysctl_name2oid(SYSCTL_HANDLER_AR
 
 	p [req->newlen] = '\0';
 
-	SYSCTL_XLOCK();
+	SYSCTL_SLOCK();
 	error = name2oid(p, oid, &len, &op);
-	SYSCTL_XUNLOCK();
+	SYSCTL_SUNLOCK();
 
 	free(p, M_SYSCTL);
 



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