Date: Thu, 5 Jan 2006 18:57:32 +0000 (UTC) From: Don Lewis <truckman@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_proc.c Message-ID: <200601051857.k05IvWEH030722@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
truckman 2006-01-05 18:57:32 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/kern kern_proc.c Log: MFC kern_proc.c 1.232, adapted to RELENG_5. Original commit message: truckman 2005-10-02 23:27:56 UTC FreeBSD src repository Modified files: sys/kern kern_proc.c Log: Always wire the sysctl output buffer in sysctl_kern_proc() before calling sysctl_out_proc(). -- fix from jhb Move the code in fill_kinfo_thread() that gathers data from struct proc into the new function fill_kinfo_proc_only(). Change all callers of fill_kinfo_thread() to call both fill_kinfo_proc_only() and fill_kinfo() thread. When gathering data from a multi-threaded process, fill_kinfo_proc_only() only needs to be called once. Grab sched_lock before accessing the process thread list or calling fill_kinfo_thread(). PR: kern/84684 MFC after: 3 days Testing this patch on RELENG_5 did not uncover any regressions, but no testing was done by anyone who was suffering from the problem this patch is intended to fix. Tested by: "Stian Fjeldstad" <sbf AT pcom DOT no> PR: kern/84684 Revision Changes Path 1.215.2.7 +113 -95 src/sys/kern/kern_proc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601051857.k05IvWEH030722>