Re: why is only kernel preemption disabled

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

 



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 atomicity. So, why don't we disable
> interrupts as a critical section is executing?

When using spinlocks interrupts are disabled, because not doing so would be
completely broken.

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux