ipc/msg.c: one more possible problems

Manfred Spraul (manfreds@colorfullife.com)
Mon, 27 Sep 1999 21:49:58 +0000


The freeque() implementation must wait until all waiting reader threads
have left the kernel:
> while (waitqueue_active(&msq->rwait) || waitqueue_active(&msq->wwait)) {
> wake_up (&msq->rwait);
> wake_up (&msq->wwait);
> schedule();
> }

I've read that calling schedule() could lock up.
What's the exact problem? (I read that it has something to to with
SCHED_RR threads).

--
	Manfred

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