Hung Task Timeout
mani
manishrma at gmail.com
Tue Apr 17 00:26:00 EDT 2012
Hi All,
How kernel scheduler treats task's TASK_UNINTERRUPTIBLE &
TASK_INTERREPTIBLE states ?
Actually in my case i have created a kernel thread and it is waiting on an
event as per below :-
wait_event(queue, flag);
in the above condition it gives me hung task timeout dump as it puts the
task in TASK_UNINTERRUPTIBLE state
whereas if i change the function call to
wait_event_interruptible(queue, flag);
It works fine as the task is in TASK_INTERREPTIBLE state
I have checked in the kernel [kernel/hung_task.c ] check_hung_task()
It says that
/*
* Ok, the task did not get scheduled for more than 2 minutes,
* complain:
*/
So is that means that TASK_UNINTERRUPTIBLE will not get schedule by the
scheduler ?
Can anyone give the detail information what's going on in backyard ?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120417/431df745/attachment.html
More information about the Kernelnewbies
mailing list