kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Hung Task Timeout
@ 2012-04-17  4:26 mani
  2012-04-17  7:36 ` Philipp Ittershagen
  0 siblings, 1 reply; 6+ messages in thread
From: mani @ 2012-04-17  4:26 UTC (permalink / raw)
  To: kernelnewbies

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 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-18  8:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17  4:26 Hung Task Timeout mani
2012-04-17  7:36 ` Philipp Ittershagen
2012-04-17 11:35   ` mani
2012-04-17 12:46     ` Philipp Ittershagen
2012-04-18  7:31       ` mani
2012-04-18  8:14         ` Philipp Ittershagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).