Re: kill task in TASK_UNINTERRUPTIBLE

Robert Love (rml@tech9.net)
08 May 2002 09:43:30 -0700


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/