+int md_thread(void * arg)
+{
+ [...]
+ for (;;) {
+ cli();
+ if (!test_bit(THREAD_WAKEUP, &thread->flags)) {
+ if (!thread->run)
+ break;
+ interruptible_sleep_on(&thread->wqueue);
+ }
+ sti();
This means that interruptible_sleep_on() could be called while we own
the global cli lock. I think this could deadlock.
-- Manfred
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/