From: William Chow <lilbilchow@yahoo.com>
To: linux-kernel@vger.kernel.org
Cc: lilbilchow@yahoo.com
Subject: missing a wakeup from pending signal
Date: Thu, 13 Feb 2003 19:35:43 -0800 (PST) [thread overview]
Message-ID: <20030214033543.26042.qmail@web13803.mail.yahoo.com> (raw)
I am finding that my kernel thread will occasionally
fail to wake up eventhough it has a signal pending.
The thread is calling wait_event_interruptible and
waiting for SIGIO (from the sg driver). I only see it
fail to wake up when performing intensive sg activity.
>From kdb, the task shows the signal was delivered
(sigpending==1 and pending.signal.sig[0]==0x10000000).
So, I was just wondering if anyone was aware of a fix
(I'm using 2.4.18 on i386). A google search failed to
turn up anything obvious. My code is pretty basic
stuff but here the wait loop just in case:
for (;;) {
gotsig = wait_event_interruptible();
if (gotsig) {
sigemptyset(&set);
spin_lock_irq(¤t->sigmask_lock);
signum = dequeue_signal(&set, &info);
spin_unlock_irq(¤t->sigmask_lock);
if (signum != SIGIO)
break;
process_io();
}
}
Please CC me in the response. Thanks in advance.
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
reply other threads:[~2003-02-14 3:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030214033543.26042.qmail@web13803.mail.yahoo.com \
--to=lilbilchow@yahoo.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®