All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: root@chaos.analogic.com
Cc: Nicolas Bougues <nbougues-listes@axialys.net>,
	Andries Brouwer <aebr@win.tue.nl>,
	linux-kernel@vger.kernel.org
Subject: Re: Problems with wait queues
Date: Wed, 26 Jun 2002 22:49:30 +0100	[thread overview]
Message-ID: <2014.1025128170@redhat.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1020626100928.25416A-100000@chaos.analogic.com>


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.


--
dwmw2



  parent reply	other threads:[~2002-06-26 21:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-26 10:32 Problems with wait queues Nicolas Bougues
2002-06-26 10:52 ` Andries Brouwer
2002-06-26 14:00   ` Nicolas Bougues
2002-06-26 14:17     ` Richard B. Johnson
2002-06-26 14:38       ` Nicolas Bougues
2002-06-26 21:49       ` David Woodhouse [this message]
2002-06-27 11:44         ` Richard B. Johnson
2002-06-27 12:36           ` Oliver.Neukum
2002-06-27 13:17           ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2014.1025128170@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=aebr@win.tue.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nbougues-listes@axialys.net \
    --cc=root@chaos.analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.