Date: Tue, 6 Mar 2001 18:36:47 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_kthread.c Message-ID: <200103070236.f272alB68619@freefall.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103070236.f272alB68619>
