summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-03-07 02:36:47 +0000
committerjhb <jhb@FreeBSD.org>2001-03-07 02:36:47 +0000
commitd936d6d9be7bab125a42add7b5c3e4fbaa4a35d0 (patch)
tree9788e4e7b1c76df3bdf7cafcce953e6917ba7fc5 /sys/kern/kern_shutdown.c
parent8dbcf4e47b467e6c555d7d4e81cc6ced6ae22f4d (diff)
downloadFreeBSD-src-d936d6d9be7bab125a42add7b5c3e4fbaa4a35d0.zip
FreeBSD-src-d936d6d9be7bab125a42add7b5c3e4fbaa4a35d0.tar.gz
- 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.
Diffstat (limited to 'sys/kern/kern_shutdown.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud