>> The problem is that schedule does not return. So the >>code after schedule() never >> gets executed. The control returns if schedule_timeout() >>is used. >> >> What could be the problem? >hmmm. Maybe because you set the task state to >TASK_INTERRUPTIBLE and no >one wakes it up? oops...seems I have to learn a lot, but i think i will get there. Swapnil. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/