spin_lock_irqsave query

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

 



I have a question regarding spin_lock_irqsave. Can bottom halfs or
softirqs execute if an irq lock is held? E.g

spin_lock_irqsave(&lock, flags)
function()
spin_unlock_irqsave(&lock, flags)

Is it possible that function is interrupted by bottom half or softirq?
If yes, then do I need to aquire another lock by spin_lock_bh ?? If
not, can someone point me to the code which prevents bottom half or
softirq from executing if irq lock is held.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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