1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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
This commit is contained in:
John Baldwin 2006-02-22 17:21:45 +00:00
parent 7a61c1a3cb
commit 54690b5679
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155919

View File

@ -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 */