Re: network driver disabled interrupts in PREEMPT_RT

From: Ingo Molnar
Date: Mon Jun 13 2005 - 14:01:47 EST



* Kristian Benoit <kbenoit@xxxxxxxxxxx> wrote:

> Hi,
> I got lots of these messages when accessing the net running
> 2.6.12-rc6-RT-V0.7.48-25 :
>
> "network driver disabled interrupts: tg3_start_xmit+0x0/0x629 [tg3]"
>
> it seem to come from net/sched/sch_generic.c.

does the patch below fix it?

Ingo

--- linux/drivers/net/tg3.c.orig
+++ linux/drivers/net/tg3.c
@@ -3242,9 +3242,9 @@ static int tg3_start_xmit(struct sk_buff
* So we really do need to disable interrupts when taking
* tx_lock here.
*/
- local_irq_save(flags);
+ local_irq_save_nort(flags);
if (!spin_trylock(&tp->tx_lock)) {
- local_irq_restore(flags);
+ local_irq_restore_nort(flags);
return NETDEV_TX_LOCKED;
}

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