summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_workq.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2008-10-27 02:13:34 +0000
committerdlg <dlg@openbsd.org>2008-10-27 02:13:34 +0000
commitb3514b7efba9a23e3651a0492089d78c8d6c2757 (patch)
tree2ebdde30440fcad2216c03c582092e868cdef3f8 /sys/kern/kern_workq.c
parentStart updating isp. Just new defines, comments, whitespace, anything that (diff)
downloadwireguard-openbsd-b3514b7efba9a23e3651a0492089d78c8d6c2757.tar.xz
wireguard-openbsd-b3514b7efba9a23e3651a0492089d78c8d6c2757.zip
when shutting workq threads down, dont try to take the big kernel
lock when we've never given it up. this is a remnant of the mpsafe workq stuff we had that wasnt cleaned up properly. found by and fix tested by oga@
Diffstat (limited to 'sys/kern/kern_workq.c')
-rw-r--r--sys/kern/kern_workq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_workq.c b/sys/kern/kern_workq.c
index 391717b84cc..8aec163d494 100644
--- a/sys/kern/kern_workq.c
+++ b/sys/kern/kern_workq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_workq.c,v 1.7 2008/02/15 04:08:36 tedu Exp $ */
+/* $OpenBSD: kern_workq.c,v 1.8 2008/10/27 02:13:34 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -192,6 +192,5 @@ workq_thread(void *arg)
splx(s);
wakeup(&wq->wq_running);
- KERNEL_PROC_LOCK(curproc);
kthread_exit(0);
}