Re: [patch 08/19] mutex subsystem, core

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, 3 Jan 2006, Ingo Molnar wrote:
> > 
> > Is this an interrupt deadlock, or do you not allow interrupt contexts 
> > to even trylock a mutex?
> correct, no irq contexts are allowed. This is also checked for if 

Note that semaphores are definitely used from interrupt context, and as 
such you can't replace them with mutexes if you do this.

The prime example is the console semaphore. See kernel/printk.c, look for 
"down_trylock()", and realize that they are all about interrupts.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at
Please read the FAQ at

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux