Skip to content

Commit

Permalink
Restore some commented out BUG_ON/WARN_ON irqs_disabled
Browse files Browse the repository at this point in the history
These do not trigger anymore, so get the code back in sync with mainline.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
  • Loading branch information
larsclausen committed Oct 20, 2012
1 parent 3a485d2 commit f242836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/buffer.c
Expand Up @@ -1215,7 +1215,7 @@ static DEFINE_PER_CPU(struct bh_lru, bh_lrus) = {{ NULL }};
static inline void check_irqs_on(void)
{
#ifdef irqs_disabled
// BUG_ON(irqs_disabled());
BUG_ON(irqs_disabled());
#endif
}

Expand Down
3 changes: 1 addition & 2 deletions kernel/softirq.c
Expand Up @@ -156,8 +156,7 @@ EXPORT_SYMBOL(_local_bh_enable);

static inline void _local_bh_enable_ip(unsigned long ip)
{
// WARN_ON_ONCE(in_irq() || irqs_disabled());
WARN_ON_ONCE(in_irq());
WARN_ON_ONCE(in_irq() || irqs_disabled());
#ifdef CONFIG_TRACE_IRQFLAGS
local_irq_disable();
#endif
Expand Down

0 comments on commit f242836

Please sign in to comment.