2.2.12pre3

Manfred Spraul (manfreds@colorfullife.com)
Fri, 13 Aug 1999 21:18:17 +0200


drivers/block/md.c looks suspicious:

+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/