Why can the kernel be stuck by a busy kernel thread ?

2011-10-14 Thread Parmenides
Hi, I code a kernel module which do some nop. When inserted into the kernel, the kernel will be stuck and can not reponse my keypress anymore. So, I have to reboot to get out. Why? #include linux/init.h #include linux/module.h #include linux/kernel.h #include linux/kthread.h struct

Re: Why can the kernel be stuck by a busy kernel thread ?

2011-10-14 Thread Daniel Baluta
On Fri, Oct 14, 2011 at 5:04 PM, Parmenides mobile.parmeni...@gmail.com wrote: Hi,   I code a kernel module which do some nop. When inserted into the kernel, the kernel will be stuck and can not reponse my keypress anymore. So, I have to reboot to get out. Why? Is kernel preemption

Re: Why can the kernel be stuck by a busy kernel thread ?

2011-10-14 Thread Parmenides
2011/10/14 Daniel Baluta daniel.bal...@gmail.com: Is kernel preemption activated? Could you check for # grep CONFIG_PREEMPT .config? Yes. I really have not select CONFIG_PREEMPT option. Now, I turn it on and things are ok. Thanks a lot. ___

Re: Why can the kernel be stuck by a busy kernel thread ?

2011-10-14 Thread Mulyadi Santosa
On Fri, Oct 14, 2011 at 23:43, Parmenides mobile.parmeni...@gmail.com wrote: 2011/10/14 Daniel Baluta daniel.bal...@gmail.com: Is kernel preemption activated? Could you check for # grep CONFIG_PREEMPT .config? Yes. I really have not select CONFIG_PREEMPT option. Now, I turn it on and things