From: Daniel Walker <dwalker@mvista.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix sleep_on functions
Date: 24 Feb 2005 10:41:37 -0800 [thread overview]
Message-ID: <1109270495.1527.5.camel@dhcp153.mvista.com> (raw)
There is a problem with *_sleep_on() functions when they call schedule() . Interrupts
should be enabled , but they aren't. So a warning message is printed letting everyone
know that your calling schedule() from an invalid context.
Signed-off-by: Daniel Walker <dwalker@mvista.com>
Index: linux-2.6.10/kernel/sched.c
===================================================================
--- linux-2.6.10.orig/kernel/sched.c 2005-02-22 21:41:45.000000000 +0000
+++ linux-2.6.10/kernel/sched.c 2005-02-22 21:46:36.000000000 +0000
@@ -3417,7 +3417,7 @@
#define SLEEP_ON_HEAD \
spin_lock_irqsave(&q->lock,flags); \
__add_wait_queue(q, &wait); \
- spin_unlock(&q->lock);
+ spin_unlock_irq(&q->lock);
#define SLEEP_ON_TAIL \
spin_lock_irq(&q->lock); \
reply other threads:[~2005-02-24 18:42 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=1109270495.1527.5.camel@dhcp153.mvista.com \
--to=dwalker@mvista.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®