Hi,

      I want to ask about the new set of kernel thread APIs (kthread_) being
used in kernel.

      In my module, when certain thread was sleeping(TASK_INTERRUPTIBLE
state) and from other thread, I tried to stop this sleeping thread using
kthread_stop. The operation was not successful and kthread_stop did not
return. Is this behaviour expected?

      When I tried to google around it, I found

             http://lwn.net/Articles/118935/

       which says that kthread_stop doesn't make use of signals to wake up
the sleeping thread and it is expected that sleeping thread should
periodically wake up and check for kthread_should_stop. Is it true?

       It would be great if somebody could just shed some more light on it?

Thanks and Regards,
Amar

Reply via email to