Re: Problems with wait queues

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Thu Jun 27 2002 - 06:44:08 EST


On Wed, 26 Jun 2002, David Woodhouse wrote:

>
> For the benefit of any newcomers to the list who haven't clocked RBJ yet...
>
> root@chaos.analogic.com 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.
>

Whatever your message means; perhaps it was a way of saying "Hello"
to an old friend?

Attached is a file showing about 485 usages of 'sleep_on' in the
kernel drivers. If this usage is, as you say, buggy then will you
please inform us unwashed hordes what we should use to replace these?

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

                 Windows-2000/Professional isn't.



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



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