From: p.ittershagen@googlemail.com (Philipp Ittershagen)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Hung Task Timeout
Date: Wed, 18 Apr 2012 10:14:08 +0200 [thread overview]
Message-ID: <20120418081408.GA20641@peter> (raw)
In-Reply-To: <CAB+TZU9tMmBJdWSzoeymOWPOV85RVbnAjsXOGu217sHJZsG5dQ@mail.gmail.com>
On Wed, Apr 18, 2012 at 01:01:45PM +0530, mani wrote:
> I think in my case both the tasks wait in the wait_queue and never come to
> the TASK_RUNNING state.
> In case of the TASK_INTERRUPTIBLE, it will get scheduled (or put to run
> queue) in two cases only:-
> 1. If it receive any signal not before that (we are not sending any signal
> to the task so it will remain in the wait_queue)
> 2. we call a wake_up () call.
> otherwise there is no point in putting the task in run queue which has
> nothing to do.
Yes, correct. You should use TASK_INTERRUPTIBLE here, otherwise your kernel
thread cannot receive signals and you are not able to kill(1) your thread from
userspace or use kthread_stop() in the kernel.
Greetings,
Philipp
prev parent reply other threads:[~2012-04-18 8:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=20120418081408.GA20641@peter \
--to=p.ittershagen@googlemail.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).