Hi, Le Mon, 16 Jul 2007 11:47:56 -0400, "Felipe Balbi" <felipebalbi@xxxxxxxxxxxxxxxxxxxxx> a écrit : > Could anyone explain me a bit about sleeping inside mutex_locks??? > afaik this shouldn't be a problem... but I'm getting a "BUG: sleeping > function called from invalid context at kernel/mutex.c:86" You're trying to take a mutex, while you already hold a spinlock, or while you're inside an interrupt handler. In both of these contexts, you're not allowed to sleep. For more information, you can also read http://lwn.net/images/pdf/LDD3/ch05.pdf. But of course, posting your code, or at least, a link to it, would help. Sincerly, Thomas -- Thomas Petazzoni - thomas.petazzoni@xxxxxxxx http://{thomas,sos,kos}.enix.org - http://www.toulibre.org http://www.{livret,agenda}dulibre.org -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ