lkml.org 
[lkml]   [2002]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: kill task in TASK_UNINTERRUPTIBLE
From
Date
On Wed, 2002-05-08 at 13:23, Denis Vlasenko wrote:
> On 8 May 2002 12:01, Amol Lad wrote:
> > Hi,
> > Is there any way i can kill a task in
> > TASK_UNINTERRUPTIBLE state ?
>
> No. Everytime you see hung task in this state
> you see kernel bug.
>
> Somebody correct me if I am wrong.

Generally correct. Of course, what is "hung" ?

If it is just sitting in uninterruptible sleep, it could legitimately be
waiting for an event. More than likely, however, after some sane period
of time something is broken.

So, yah, it is a kernel bug.

I'll expand on your answer too - _why_ can't we kill it? Same argument
we had over saving the futexes if a process bails. You hold a semaphore
because you are entering a critical section. If you die in the middle,
who knows the state the data is in and you do _not_ want to reenter it.

Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.112 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site