Date: Fri, 20 May 2016 08:28:12 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300289 - head/sys/geom Message-ID: <201605200828.u4K8SCgk018840@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri May 20 08:28:11 2016 New Revision: 300289 URL: https://svnweb.freebsd.org/changeset/base/300289 Log: Remove unneeded Giant locking around kthreads creation. Sponsored by: The FreeBSD Foundation Modified: head/sys/geom/geom_kern.c Modified: head/sys/geom/geom_kern.c ============================================================================== --- head/sys/geom/geom_kern.c Fri May 20 08:25:37 2016 (r300288) +++ head/sys/geom/geom_kern.c Fri May 20 08:28:11 2016 (r300289) @@ -144,14 +144,12 @@ g_init(void) g_io_init(); g_event_init(); g_ctl_init(); - mtx_lock(&Giant); kproc_kthread_add(g_event_procbody, NULL, &g_proc, &g_event_td, RFHIGHPID, 0, "geom", "g_event"); kproc_kthread_add(g_up_procbody, NULL, &g_proc, &g_up_td, RFHIGHPID, 0, "geom", "g_up"); kproc_kthread_add(g_down_procbody, NULL, &g_proc, &g_down_td, RFHIGHPID, 0, "geom", "g_down"); - mtx_unlock(&Giant); EVENTHANDLER_REGISTER(shutdown_pre_sync, geom_shutdown, NULL, SHUTDOWN_PRI_FIRST); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605200828.u4K8SCgk018840>