Date: Tue, 21 Oct 2014 21:29:21 +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: r273431 - head/sys/kern Message-ID: <201410212129.s9LLTL7Y004325@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Tue Oct 21 21:29:20 2014 New Revision: 273431 URL: https://svnweb.freebsd.org/changeset/base/273431 Log: Take the lock shared in linker_search_symbol_name. This helps sysctl kern.proc.stack. Modified: head/sys/kern/kern_linker.c Modified: head/sys/kern/kern_linker.c ============================================================================== --- head/sys/kern/kern_linker.c Tue Oct 21 21:27:13 2014 (r273430) +++ head/sys/kern/kern_linker.c Tue Oct 21 21:29:20 2014 (r273431) @@ -986,9 +986,9 @@ linker_search_symbol_name(caddr_t value, { int error; - sx_xlock(&kld_sx); + sx_slock(&kld_sx); error = linker_debug_search_symbol_name(value, buf, buflen, offset); - sx_xunlock(&kld_sx); + sx_sunlock(&kld_sx); return (error); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410212129.s9LLTL7Y004325>