Hello,
On 05/31/2010 05:31 PM, Oleg Nesterov wrote:
Right, we can do that too. Cool. :-)
This part is always a bit tricky tho. Maybe it would be a good idea
to make kthread_stop() do periodic wakeups. It's already injecting
one rather unexpected wake up into the mix anyway so there isn't much
point in avoiding multiple and it would make designing kthread loops
easier. Or maybe what we need is something like kthread_idle() which
encapsulates the check and sleep part.
Thanks.
--
tejun
--