From: Stefan Agner on
Hi Thomas,

Quoting Thomas Gleixner <tglx(a)linutronix.de>:
> please use short and descriptive subject lines. "I attached a test
> module to reproduce this bug ..." does not tell anything.
>
> On Mon, 12 Apr 2010, Stefan Agner wrote:
>
>> Unable to handle kernel paging request at kthread_should_stop
>
> That would have been the real subject line :)
In fact this was my intended Subject line... The current subject line was a
copy and paste accident! Due to the fact that my online mailer eats mails
sometimes before I can send them, I wrote it in an editor.

>> I attached a test module to reproduce this bug. Does I miss something in my
>> code or is there a bug?
>
> There are several bugs in your code :)
>
>> static int runloop(void *unused)
>> {
>>
>> int ret;
>>
>> /* Daemonize */
>> daemonize(MODULE_NAME);
>
> Do not call daemonize() for a kthread created with kthread_create().
> That was necessary for kthreads created with kernel_thread.
Removing this already solved the bug message.

I fixed all other bugs as well and attached the updated file.

Thanks a lot

--
Stefan Agner



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.