When a kernel-created thread exits, properly remove it from gd_tdallq and
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 26 Jun 2004 02:14:31 +0000 (02:14 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 26 Jun 2004 02:14:31 +0000 (02:14 +0000)
commit8826f33aa80ae37f0107cb0013e1c10cfa519115
tree98d066caa9cc9024b8d5c86ddbe7e9d9df0b4e28
parent6812be85758f5765907f46c11bdeae32f6155ba3
When a kernel-created thread exits, properly remove it from gd_tdallq and
only queue it on gd_tdfreeq only if it was originally allocated.  Note:
kernel threads do not usually exit so this did not fix any known panics.
sys/kern/lwkt_thread.c