From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Kathy Frazier <kfrazier@daetwyler.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Interrupt trouble due to IRQ router VIA?
Date: 01 Aug 2002 01:34:53 +0100 [thread overview]
Message-ID: <1028162093.13008.24.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <200207311615.15896.kfrazier@daetwyler.com>
On Wed, 2002-07-31 at 21:15, Kathy Frazier wrote:
> another system. In this system, the driver times out on the
> interruptible_sleep_on_timeout waiting for the interrupt. One thing that I
There is a classic kernel programming error which goes something like
this
my_interrupt()
{
foo->ready = 1;
wake_up(&foo_pending);
}
foo_read()
{
while(!foo->ready && !signal_pending(current))
interruptible_sleep_on(&foo_pending);
}
What happens then is this
foo->ready = 0 - true
signal pending = 0 - ok
INTERRUPT
foo->ready=1
wake up
END INTERRUPT
interruptible_sleep_on(&foo_pending);
Waits forever
It could be your timings have changed so such a bug now shows up
next prev parent reply other threads:[~2002-07-31 23:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-31 20:15 Kathy Frazier
2002-08-01 0:34 ` Alan Cox [this message]
2002-08-07 16:16 ` Kathy Frazier
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=1028162093.13008.24.camel@irongate.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=kfrazier@daetwyler.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®