diff options
| author | Scott Long <scottl@FreeBSD.org> | 2006-01-11 00:37:13 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2006-01-11 00:37:13 +0000 |
| commit | 1c3a3b0bd0d0acceca58f56148efb1519305d725 (patch) | |
| tree | b8d21d36b1757d493ab659d5be8656122c8f9e02 /sys/kern/subr_taskqueue.c | |
| parent | 2ff7d1b635d389a04aa784eff8f223ef8139ce09 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_taskqueue.c')
| -rw-r--r-- | sys/kern/subr_taskqueue.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 794b103b05e3..3cc82927dc53 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -145,11 +145,7 @@ taskqueue_terminate(struct proc **pp, struct taskqueue *tq) *pp = NULL; if (p) { wakeup_one(tq); - PROC_LOCK(p); /* NB: insure we don't miss wakeup */ - TQ_UNLOCK(tq); /* let taskqueue thread run */ - TQ_SLEEP(tq, p, &p->p_mtx, PWAIT, "taskqueue_destroy", 0); - PROC_UNLOCK(p); - TQ_LOCK(tq); + TQ_SLEEP(tq, p, &tq->tq_mutex, PWAIT, "taskqueue_destroy", 0); } } |
