On Monday 14 February 2005 12:48, Anton Altaparmakov wrote: > Hi, > > I get a few Debug messages of the form from UML: > > Debug: sleeping function called from invalid context at > include/asm/arch/semaphore.h:107 > in_atomic():0, irqs_disabled():1 > Call Trace: > 087d77b0: [<0809aaa5>] __might_sleep+0x135/0x180 > 087d77d8: [<084d377f>] mcount+0xf/0x20 > 087d77e0: [<0807cc13>] uml_console_write+0x33/0x80 > Most are coming via uml_console_write. The problem is that the UML tty drivers use a semaphore instead of a spinlock for the locking, which also causes some other problems. The attached patch should fix this, but I've not yet made sure it is not deadlock-prone (I didn't hit any during some very limited testing). So it's not yet ready for 2.6.11. -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade