RE: Problems with kthread_exit() and SMPng

2000-10-05 Thread John Baldwin
Ugh, my mail client ate my reply, lemme try again. On 05-Oct-00 Boris Popov wrote: Hello, Currently I'm trying to make KLD which uses kernel threads unloadable under recent -current. The prototype of functions looks like this: void my_thread(void*arg) {

RE: Problems with kthread_exit() and SMPng

2000-10-05 Thread Boris Popov
On Thu, 5 Oct 2000, John Baldwin wrote: You need Giant before calling kthread_exit(). Ok. After some examination I've found that two fields in the Giant mutex structure set to unexpected values: It should have died much earlier if you had INVARIANTS turned on. :( It looks