Date: Fri, 19 Feb 2010 15:10:05 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204089 - head/sys/kern Message-ID: <201002191510.o1JFA5LC019848@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: attilio Date: Fri Feb 19 15:10:05 2010 New Revision: 204089 URL: http://svn.freebsd.org/changeset/base/204089 Log: Use the cached value within comparison. Submitted by: jhb Modified: head/sys/kern/kern_kthread.c Modified: head/sys/kern/kern_kthread.c ============================================================================== --- head/sys/kern/kern_kthread.c Fri Feb 19 15:03:55 2010 (r204088) +++ head/sys/kern/kern_kthread.c Fri Feb 19 15:10:05 2010 (r204089) @@ -317,7 +317,7 @@ kthread_exit(void) /* A module may be waiting for us to exit. */ wakeup(curthread); PROC_LOCK(p); - if (curthread->td_proc->p_numthreads == 1) { + if (p->p_numthreads == 1) { PROC_UNLOCK(p); kproc_exit(0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002191510.o1JFA5LC019848>