kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: manishrma@gmail.com (mani)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Hung Task Timeout
Date: Tue, 17 Apr 2012 09:56:00 +0530	[thread overview]
Message-ID: <CAB+TZU_g4PYJCxTwRiAiyp_ogw1Grd8MxUdL4mf16yQzujuuUg@mail.gmail.com> (raw)

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 

             reply	other threads:[~2012-04-17  4:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17  4:26 mani [this message]
2012-04-17  7:36 ` Hung Task Timeout 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAB+TZU_g4PYJCxTwRiAiyp_ogw1Grd8MxUdL4mf16yQzujuuUg@mail.gmail.com \
    --to=manishrma@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).