>> slab.c : line 1072-1073 is
>> if (in_interrupt() && (flags & SLAB_LEVEL_MASK) != SLAB_ATOMIC)
>> The driver being loaded is a small proprietary driver. The init routine of
>> the driver is doing kmalloc() with GFP_KERNEL as the second argument. I know
>> that I can fix my driver to use GFP_ATOMIC if running in interrupt context.
>> My question is why is the "insmod" command running in interrupt context?
>I don't think insmod should have interrupt context set.
>Do you have preemptible kernel enabled? This problem often happens if
>preemptible kernel is enabled and there is a missing interrupt path not pre-k
Thanks for the quick reply jun,
I don't think I am running preemptible kernel. Is there /proc file that shows
if I am running preemptible kernel or not?