]> git.baikalelectronics.ru Git - kernel.git/commit
e1000: remove e1000_clean_tx_irq call from e1000_netpoll
authorAndy Gospodarek <andy@greyhouse.net>
Thu, 19 Jun 2008 21:19:12 +0000 (17:19 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 28 Jun 2008 14:23:32 +0000 (10:23 -0400)
commit985b47c03077326a646435ac68d523a93caf721d
treee702ff34a8070a30fcf661e2f648198e14363c3a
parent70f5bfd98bdae58a7e5457639ec37729e79960ef
e1000: remove e1000_clean_tx_irq call from e1000_netpoll

The call to e1000_clean_tx_irq in e1000_netpoll can race with the call
to e1000_clean_tx_irq in e1000_clean.  With a small bit of tweaking to
to netpoll_send_skb to simulate a system that was under extreme stress,
I was able to reproduce these concurrent calls.  This can result in
multiple frees to the skbs on the tx ring buffer.

Dropping this call from e1000_netpoll should be fine since we can rely
on the calls in e1000_clean to do what is needed since napi will poll
the hardware just after calling poll_controller.

Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/e1000/e1000_main.c