* calling sleeping functions with interrupts disabled
@ 2001-11-19 22:27 Tachio Terauchi
0 siblings, 0 replies; only message in thread
From: Tachio Terauchi @ 2001-11-19 22:27 UTC (permalink / raw)
To: linux-kernel
We're trying to run a program analysis tool on the kernel source to
check for sleeping functions being called while interrupts are
disabled. This will be similar to what people at Stanford did, but
we'll be using a different technique.
Here's my question:
I noticed that sleep_on() disables interrupts before it calls
schedule(). This puzzles me because my understanding was that
schedule() must not be called with interrupts disabled (if there are
no more threads to run then the system would deadlock). Does
schedule() re-enable interrupts (it looks like it does)? If so, why
is it bad to call sleeping functions with interrupts disabled?
Sorry if this is a silly question...
-Tachio
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-11-19 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-19 22:27 calling sleeping functions with interrupts disabled Tachio Terauchi
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®