Re: why is only kernel preemption disabled

2010-08-19 Thread Michael Blizek
Hi! On 20:53 Wed 18 Aug , Daniel Baluta wrote: Hello, On Wed, Aug 18, 2010 at 8:07 PM, Parmenides mobile.parmeni...@gmail.com wrote: Hi, For a critical section protected by a spin lock, kernel preemption is disabled explicitly, probably to make the critical section atomic. But,

Re: why is only kernel preemption disabled

2010-08-19 Thread Michael Blizek
Hi! On 01:07 Thu 19 Aug , Parmenides wrote: Hi, For a critical section protected by a spin lock, kernel preemption is disabled explicitly, probably to make the critical section atomic. But, suppose that an interrupt occures in this critical section, allowing interrupts can wreck the

why is only kernel preemption disabled

2010-08-18 Thread Parmenides
Hi, For a critical section protected by a spin lock, kernel preemption is disabled explicitly, probably to make the critical section atomic. But, suppose that an interrupt occures in this critical section, allowing interrupts can wreck the atomicity. So, why don't we disable interrupts as a

Re: why is only kernel preemption disabled

2010-08-18 Thread Daniel Baluta
Hello, On Wed, Aug 18, 2010 at 8:07 PM, Parmenides mobile.parmeni...@gmail.com wrote: Hi, For a critical section protected by a spin lock, kernel preemption is disabled explicitly, probably to make the critical section atomic. But, suppose that an interrupt occures in this critical section,