Re: [patch] schedule_timeout updates

Linus Torvalds (torvalds@transmeta.com)
Fri, 27 Nov 1998 10:20:46 -0800 (PST)


On Fri, 27 Nov 1998, Andrea Arcangeli wrote:
>
> This make schedule_timeout() more pedantic... The case of entering
> schedule_timeout() with current->state == TASK_RUNNING seems needed at
> least from the network and tty poll.

Ehh?

The old code handled that perfectly fine. It only checked against
"TASK_UNINTERRUPTIBLE", and everything else was accepted.

I don't see the point of this patch. I'd be more inclined to remove the
test altogether, because there is actually no longer any reason not to
allow a uninterruptible sleep to timeout too if somebody wants it to.

Linus

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