Re: BUG or not? GFP_KERNEL with interrupts disabled.

David S. Miller (davem@redhat.com)
Thu, 27 Mar 2003 09:55:37 -0800 (PST)


From: Linus Torvalds <torvalds@transmeta.com>
Date: Thu, 27 Mar 2003 09:22:29 -0800 (PST)

I do agree that we should obviously not run bottom halves with
interrupts disabled

Ok, so can we add a:

if (irqs_disabled())
BUG();

check to do_softirq()?

I'll address the rest of your email in a bit.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/