diff options
author | jhb <jhb@FreeBSD.org> | 2006-02-22 17:21:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-02-22 17:21:45 +0000 |
commit | c5b264075022c686947465fe6278ed016b244126 (patch) | |
tree | d289df0b48840abac6e7648c993aa4cb45277714 /sys/kern | |
parent | d6902d680b5355d12a5cff6cc8777a9d20506082 (diff) | |
download | FreeBSD-src-c5b264075022c686947465fe6278ed016b244126.zip FreeBSD-src-c5b264075022c686947465fe6278ed016b244126.tar.gz |
Don't do a PHOLD() in kthread_create() w/o a matching PRELE() in
kthread_exit(). Rather than add the missing PRELE() I chose to just
axe the PHOLD() since it was redundant with the P_SYSTEM flag.
MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_kthread.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index bce38c1..30efbaf 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -98,7 +98,6 @@ kthread_create(void (*func)(void *), void *arg, mtx_lock(&p2->p_sigacts->ps_mtx); p2->p_sigacts->ps_flag |= PS_NOCLDWAIT; mtx_unlock(&p2->p_sigacts->ps_mtx); - _PHOLD(p2); PROC_UNLOCK(p2); /* set up arg0 for 'ps', et al */ |