Date: Wed, 31 May 2006 18:50:25 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98223 for review Message-ID: <200605311850.k4VIoP44040685@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98223 Change 98223 by jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605311850.k4VIoP44040685>