diff options
author | Andy Gospodarek <andy@greyhouse.net> | 2008-06-19 17:19:12 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-28 10:23:32 -0400 |
commit | b45f87681e2851f0c991a589989daa6a4a351565 (patch) | |
tree | e702ff34a8070a30fcf661e2f648198e14363c3a /drivers/net | |
parent | 42bfd33ab7bce7d2abaa8bd968ae9ad0dc9a4771 (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index b0e2493085b0..311ca266bd77 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -5251,7 +5251,6 @@ e1000_netpoll(struct net_device *netdev) | |||
5251 | 5251 | ||
5252 | disable_irq(adapter->pdev->irq); | 5252 | disable_irq(adapter->pdev->irq); |
5253 | e1000_intr(adapter->pdev->irq, netdev); | 5253 | e1000_intr(adapter->pdev->irq, netdev); |
5254 | e1000_clean_tx_irq(adapter, adapter->tx_ring); | ||
5255 | #ifndef CONFIG_E1000_NAPI | 5254 | #ifndef CONFIG_E1000_NAPI |
5256 | adapter->clean_rx(adapter, adapter->rx_ring); | 5255 | adapter->clean_rx(adapter, adapter->rx_ring); |
5257 | #endif | 5256 | #endif |