Re: Asynch I/O overloaded 2.2.15/2.3.99

Andrea Arcangeli (andrea@suse.de)
Wed, 12 Apr 2000 20:32:22 +0200 (CEST)


On Wed, 12 Apr 2000, Andre Hedrick wrote:

>I have begun adjusting to a schedule to easy the loop load and it appears
>harmless and stable.

To schedule safely you need:

if (current->need_resched) {
__set_current_state(TASK_RUNNING);
schedule();
}

(until we'll break schedule in two pieces)

Andrea

-
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/