summaryrefslogtreecommitdiff
path: root/sys/kern/subr_taskqueue.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-08-01 13:35:38 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-08-01 13:35:38 +0000
commitfbd140c78603207852b35721b6ef3520e29b7bd7 (patch)
tree26f84d226370d3aaa0b90ab4f5e6465a0baf47ba /sys/kern/subr_taskqueue.c
parent8f3e3652e43d8747c0ccfe70d9cae96b444c1490 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_taskqueue.c')
-rw-r--r--sys/kern/subr_taskqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c
index 19a93ad6c6948..28fbe38735641 100644
--- a/sys/kern/subr_taskqueue.c
+++ b/sys/kern/subr_taskqueue.c
@@ -94,6 +94,7 @@ taskqueue_free(struct taskqueue *queue)
{
mtx_lock(&queue->tq_mutex);
+ KASSERT(queue->tq_draining == 0, ("free'ing a draining taskqueue"));
queue->tq_draining = 1;
mtx_unlock(&queue->tq_mutex);