From owner-cvs-all Tue Mar 6 18:36:54 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9982F37B71B; Tue, 6 Mar 2001 18:36:47 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f272alB68619; Tue, 6 Mar 2001 18:36:47 -0800 (PST) (envelope-from jhb) Message-Id: <200103070236.f272alB68619@freefall.freebsd.org> From: John Baldwin Date: Tue, 6 Mar 2001 18:36:47 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_kthread.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/03/06 18:36:47 PST Modified files: sys/kern kern_kthread.c Log: - Use _PHOLD and move it before a PROC_UNLOCK to reduce the number of mutex operations in kthread_create(). - Lock a kthread's proc before changing its parent via proc_reparent(). - Test P_KTHREAD not P_SYSTEM in kthread_suspend() and kthread_resume(). P_SYSTEM just means that the process shouldn't be swapped and is used for vinum's daemon for example. - Lock all the signal state used for suspending and resuming kthreads with the proc lock. Revision Changes Path 1.14 +19 -8 src/sys/kern/kern_kthread.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message