Re: Problems with wait queues

From: David Woodhouse (
Date: Wed Jun 26 2002 - 16:49:30 EST

For the benefit of any newcomers to the list who haven't clocked RBJ yet... said:
> I am sure that you can have things look correct as well as run
> properly. However, you didn't show us the code. You need to do
> something like:

> interruptible_sleep_on(&semaphore);

> while your wake-up occurs with:

> wake_up_interruptible(&semaphore);

Do not ever use sleep_on() and friends. Almost all usage of these
functions will be buggy.


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:11 EST