Hi, What I find here in the kernel/mutex.c:86 is that there is a function __sched_mutex_lock in which I find might_sleep function call on line no. 86, which implies that if no lock is acquired it would sleep till it gets it. I am a bit surprised about you having no sleep nor delay there. I assume, you are on the 2.6 kernel. Regards, Rajendra Stalekar(extn 2016) Location:- Akruti Mobile no:- +91 9860501143 -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Felipe Balbi Sent: Monday, July 16, 2007 9:18 PM To: kernelnewbies Subject: Mutex and Sleep Hello all, 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" I have no sleep() nor delay() inside the function it's complaining about. So I'm kind of stuck here. Thanks in advance -- Best Regards, Felipe Balbi felipebalbi@xxxxxxxxxxxxxxxxxxxxx -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ