2

In __local_bh_enable, we have a

WARN_ON_ONCE(!irqs_disabled());

I'm wondering what the purpose of this warning is -- I would imagine you would want to be able to renable bottomhalves when in say spinlock_irq protected code... (note: I'm looking at linux 3.4 code here, but it also seems to be in 4.1).

Claudio
  • 10,614
  • 4
  • 31
  • 71
John
  • 3,400
  • 3
  • 31
  • 47

0 Answers0