PERFORCE change 98223 for review
John Baldwin
jhb at FreeBSD.org
Wed May 31 11:51:53 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=98223
Change 98223 by jhb at jhb_mutex on 2006/05/31 18:50:19
Grab Giant around sysctl_{un,}register_oid() since sysctl still
needs Giant.
Submitted by: csjp
Affected files ...
.. //depot/projects/smpng/sys/kern/kern_linker.c#65 edit
Differences ...
==== //depot/projects/smpng/sys/kern/kern_linker.c#65 (text+ko) ====
@@ -277,8 +277,10 @@
if (linker_file_lookup_set(lf, "sysctl_set", &start, &stop, NULL) != 0)
return;
+ mtx_lock(&Giant);
for (oidp = start; oidp < stop; oidp++)
sysctl_register_oid(*oidp);
+ mtx_unlock(&Giant);
}
static void
@@ -292,8 +294,10 @@
if (linker_file_lookup_set(lf, "sysctl_set", &start, &stop, NULL) != 0)
return;
+ mtx_lock(&Giant);
for (oidp = start; oidp < stop; oidp++)
sysctl_unregister_oid(*oidp);
+ mtx_unlock(&Giant);
}
static int
More information about the p4-projects
mailing list