* [PATCH] Fix sleep_on functions
@ 2005-02-24 18:41 Daniel Walker
0 siblings, 0 replies; only message in thread
From: Daniel Walker @ 2005-02-24 18:41 UTC (permalink / raw)
To: linux-kernel
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); \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-24 18:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24 18:41 [PATCH] Fix sleep_on functions Daniel Walker
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®