Skip to content

Commit f242836

Browse files
committedOct 20, 2012
Restore some commented out BUG_ON/WARN_ON irqs_disabled
These do not trigger anymore, so get the code back in sync with mainline. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
1 parent 3a485d2 commit f242836

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎fs/buffer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ static DEFINE_PER_CPU(struct bh_lru, bh_lrus) = {{ NULL }};
12151215
static inline void check_irqs_on(void)
12161216
{
12171217
#ifdef irqs_disabled
1218-
// BUG_ON(irqs_disabled());
1218+
BUG_ON(irqs_disabled());
12191219
#endif
12201220
}
12211221

‎kernel/softirq.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ EXPORT_SYMBOL(_local_bh_enable);
156156

157157
static inline void _local_bh_enable_ip(unsigned long ip)
158158
{
159-
// WARN_ON_ONCE(in_irq() || irqs_disabled());
160-
WARN_ON_ONCE(in_irq());
159+
WARN_ON_ONCE(in_irq() || irqs_disabled());
161160
#ifdef CONFIG_TRACE_IRQFLAGS
162161
local_irq_disable();
163162
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.