Re: local_bh_enable with irq's disabled

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

 



On 1/25/06, Sanjay Acharya <sacharya@xxxxxxxxxxxxx> wrote:
> What is the significance of the code WARN_ON(irqs_disabled()) code in
> the function local_bh_enable()? Why is this check done?

this makes sure that while enabling the softirqs (normally done at the
end of handling of softirqs), interrupts should not be disabled. If
they are disabled because of any reason (sofirq might have done that),
its an abnormal condition and kernel will dump the stack at this
point.

-Gaurav

>
> Sanjay
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>
>

--
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