From: george anzinger <george@mvista.com>
To: root@chaos.analogic.com
Cc: Norbert Roos <n.roos@berlin.de>, linux-kernel@vger.kernel.org
Subject: Re: System hangs during interruptible_sleep_on_timeout() under 2.4.9
Date: Mon, 01 Oct 2001 09:39:37 -0700 [thread overview]
Message-ID: <3BB89C49.99155417@mvista.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1010927112759.1310A-100000@chaos.analogic.com>
"Richard B. Johnson" wrote:
>
> On Thu, 27 Sep 2001, Norbert Roos wrote:
>
> > Ingo Molnar wrote:
> >
> > > are you sure timer interrupts are processed while you are waiting for the
> > > timeout to expire? I'd suggest to put a:
> > >
> > > printk("<%d>", irq);
> > >
> > > into arch/i386/kernel/irq.c:do_IRQ().
> >
> > Until the call of interruptible_sleep_on_timeout(), timer interrupts
> > were processed. Right after the call no more output is made.
> >
> [SNIPPED...]
>
> wait_queue_head_t wait_thing;
>
> Interruptible_sleep_on_timeount(&wait_thing, timeout), now requires
> that "wait_thing" must have been initialized with:
>
> init_waitqueue_head(&wait_thing);
>
> If you didn't do this before this object was used, all bets are
> off.
>
> Also, you cannot sleep during an interrupt or when you are holding
> a spin-lock that disables interrupts.
Uh? I thought it was BAD BAD BAD form to sleep with ANY spinlocks held!
George
>
> > __asm__ __volatile__("pushfl ; popl %0":"=g" (x): /* no input */)
> >
> > (x ist the variable where the IRQ flags are stored)
> > I'm not familiar with x86 assembler; is it possible that something can
> > go wrong here?
>
> This is correct. The flags are pushed then popped into the
> variable provided.
>
> Cheers,
> Dick Johnson
>
> Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).
>
> I was going to compile a list of innovations that could be
> attributed to Microsoft. Once I realized that Ctrl-Alt-Del
> was handled in the BIOS, I found that there aren't any.
>
> -
> 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/
prev parent reply other threads:[~2001-10-01 16:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-26 16:58 System hangs during interruptible_sleep_on_timeout() under 2.4.9 Norbert Roos
2001-09-26 17:05 ` Ingo Molnar
2001-09-26 18:59 ` Russell King
2001-09-26 19:27 ` Ingo Molnar
2001-09-27 14:58 ` Norbert Roos
2001-09-27 15:37 ` Richard B. Johnson
2001-10-01 16:39 ` george anzinger [this message]
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=3BB89C49.99155417@mvista.com \
--to=george@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=n.roos@berlin.de \
--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.